zoukankan      html  css  js  c++  java
  • [zz] Python 3.7 anaconda environment

    https://stackoverflow.com/questions/54175042/python-3-7-anaconda-environment-import-ssl-dll-load-fail-error

    C:UsersabhilAppDataLocalContinuumanaconda3envsHeisenbergPy37python.exe "C:Program FilesJetBrainsPyCharm Community Edition 2018.1.1helperspydevpydevconsole.py" --mode=client --port=63950
    Traceback (most recent call last):
    File "C:Program FilesJetBrainsPyCharm Community Edition 2018.1.1helperspydevpydevconsole.py", line 5, in <module>
    from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client
    File "C:Program FilesJetBrainsPyCharm Community Edition 2018.1.1helperspydev\_pydev_comm pc.py", line 4, in <module>
    from _pydev_comm.server import TSingleThreadedServer
    File "C:Program FilesJetBrainsPyCharm Community Edition 2018.1.1helperspydev\_pydev_commserver.py", line 4, in <module>
    from _shaded_thriftpy.server import TServer
    File "C:Program FilesJetBrainsPyCharm Community Edition 2018.1.1helpers hird_party hriftpy\_shaded_thriftpyserver.py", line 9, in <module>
    from _shaded_thriftpy.transport import (
    File "C:Program FilesJetBrainsPyCharm Community Edition 2018.1.1helpers hird_party hriftpy\_shaded_thriftpy ransport\__init__.py", line 57, in <module>
    from .sslsocket import TSSLSocket, TSSLServerSocket # noqa
    File "C:Program FilesJetBrainsPyCharm Community Edition 2018.1.1helpers hird_party hriftpy\_shaded_thriftpy ransportsslsocket.py", line 7, in <module>
    import ssl
    File "C:UsersabhilAppDataLocalContinuumanaconda3envsHeisenbergPy37libssl.py", line 98, in <module>
    import _ssl # if we can't import it, let the error propagate
    ImportError: DLL load failed: The specified module could not be found.
    Process finished with exit code 1

    D:Anaconda3python.exe "D:Program FilesJetBrainsPyCharm 2018.3.3helperspydevpydevconsole.py" --mode=client --port=55113
    Traceback (most recent call last):
    File "D:Program FilesJetBrainsPyCharm 2018.3.3helperspydevpydevconsole.py", line 5, in <module>
    from _pydev_comm.rpc import make_rpc_client, start_rpc_server, start_rpc_server_and_make_client
    File "D:Program FilesJetBrainsPyCharm 2018.3.3helperspydev\_pydev_comm pc.py", line 4, in <module>
    from _pydev_comm.server import TSingleThreadedServer
    File "D:Program FilesJetBrainsPyCharm 2018.3.3helperspydev\_pydev_commserver.py", line 4, in <module>
    from _shaded_thriftpy.server import TServer
    File "D:Program FilesJetBrainsPyCharm 2018.3.3helpers hird_party hriftpy\_shaded_thriftpyserver.py", line 9, in <module>
    from _shaded_thriftpy.transport import (
    File "D:Program FilesJetBrainsPyCharm 2018.3.3helpers hird_party hriftpy\_shaded_thriftpy ransport\__init__.py", line 57, in <module>
    from .sslsocket import TSSLSocket, TSSLServerSocket # noqa
    File "D:Program FilesJetBrainsPyCharm 2018.3.3helpers hird_party hriftpy\_shaded_thriftpy ransportsslsocket.py", line 7, in <module>
    import ssl
    File "D:Anaconda3libssl.py", line 98, in <module>
    import _ssl # if we can't import it, let the error propagate
    ImportError: DLL load failed: 找不到指定的模块。
    Process finished with exit code 1

    This can be fixed by manually adding in the PATH variables in PyCharm to the console.

    1. Open your Anaconda cmd
    2. Activate your Conda environment
    3. Get the full PATH value by typing echo %PATH%
      • if you are on Windows 7/can't copy the output, cd the cmd to your desktop and type echo %PATH% > path_val.txt
      • this will create a txt file so you can copy/paste the values easier.
    4. In PyCharm, go to Settings -> Build, Execution, Deployment -> Console -> Python Console -> click the folder on the right of Environment variables.
    5. Click the plus button to add a new Environment Variable
      • The name should be PATH
      • The value is the entire output from the echo %PATH% command above.
    6. Click OK, then apply.
  • 相关阅读:
    优化不易,且写且珍惜
    作为过来人的感悟:进了小公司的程序员如何翻身进入大公司
    腾讯/阿里/百度 BAT人才体系的职位层级、薪酬、晋升标准
    校招生向京东发起的“攻势”,做到他这样,你,也可以
    通过Java 线程堆栈进行性能瓶颈分析
    基于Spring Cloud的微服务落地
    多线程技术使用指南
    Android 处理含有EditText的Activity虚拟键盘
    Android ListView的监听事件
    Android 开源框架Universal-Image-Loader完全解析(一)--- 基本介绍及使用
  • 原文地址:https://www.cnblogs.com/xfzhang/p/10629787.html
Copyright © 2011-2022 走看看