在Windows的PyCharm中设置anaconda解释器 [英] Set up anaconda interpreter in PyCharm on Windows

查看:224
本文介绍了在Windows的PyCharm中设置anaconda解释器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了anaconda 3和tensorflow,它们在anaconda命令行中可以正常工作.我想使用PyCharm,但无法添加解释器Conda.

I have anaconda 3 and tensorflow set up and they work well from the anaconda command line. I would like to use PyCharm but cannot add the interpreter Conda.

我遵循了以下指示:

https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html

我尝试了不同的事情.首先是conda可执行文件是anaconda.exe的位置:

I tried different things. The first is where the conda executable is anaconda.exe:

C:\Logiciels\Anaconda3\Scripts\anaconda.exe create -p     C:\Logiciels\Anaconda3\envs\Ex_Files_TensorFlow -y python=3.7

我得到了错误:

anaconda: error: argument : invalid choice: 'create' (choose from 'auth', 'label', 'channel', 'config', 'copy', 'download', 'groups', 'login', 'logout', 'move', 'notebook', 'package', 'remove', 'search', 'show', 'upload', 'whoami')

我尝试将conda.exe作为可执行文件:

I tried the conda.exe as executable:

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没有看到它?

But the file exists and is there. Why PyCharm doesn't see it?

我还尝试了3.5版而不是3.7版,并且尝试使用其他文件夹来设置环境.

I also tried version 3.5 instead of 3.7 and a different folder to set the environment in. Do you have any suggestions?

推荐答案

我发现conda.exe埋在文件夹中

I found my conda.exe buried in folder

C:\ Users \ MYUSER \ AppData \ Local \ Continuum \ anaconda3 \ Scripts

C:\Users\MYUSER\AppData\Local\Continuum\anaconda3\Scripts

这篇关于在Windows的PyCharm中设置anaconda解释器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆