我已经设置了水蟒3和tensorflow,它们在Python命令行中运行良好。我想使用PyCharm,但不能添加解释器Conda。在
我遵循以下指示:
https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html
我尝试了不同的方法。第一个是conda可执行文件的位置Python.exe公司名称:
C:\Logiciels\Anaconda3\Scripts\anaconda.exe create -p C:\Logiciels\Anaconda3\envs\Ex_Files_TensorFlow -y python=3.7
我得到错误:
^{pr2}$我试过了conda.exe文件作为可执行文件:
C:\Logiciels\Anaconda3\Scripts\conda.exe create -p C:\Logiciels\Anaconda3\envs\Ex_Files_TensorFlow -y python=3.5
但得到输出:
Collecting package metadata: ...working... failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/r/noarch/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team.
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/r/noarch/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
我也试过:
C:\Logiciels\Anaconda3\python.exe create -p C:\Users\hel\.conda\envs\Ex_Files_TensorFlow -y python=3.7
命令输出为:
C:\Logiciels\Anaconda3\python.exe: can't open file 'create': [Errno 2] No such file or directory
但是这个文件是存在的。为什么PyCharm看不到?在
我还尝试了3.5版而不是3.7版,以及一个不同的文件夹来设置环境。你有什么建议吗?在
我找到了我的conda.exe文件隐藏在文件夹中
正如注释中建议的那样,我在conda提示符中使用以下命令查找现有环境:
返回机器上的环境 并将路径复制到“添加解释器”>;“Conda”>;“现有环境”>;“解释器”中的“解释器”字段
相关问题 更多 >
编程相关推荐