“Failed to create interpreter” appears when pychar creates a new project

In creating the project, using the base(python=3.7) that comes with Anaconda can be created normally, but using my own environment (envs/python37/python=3.7), the following problem arises: D:\Program Files\JetBrains\Pycharm 2018.3.5\helper\packaging_tools.py list Error :Permission denied Command output

~ after nearly a week of torture, I also found some comments on Google, which is still a lot of resources on Google (portal). Generally speaking, it should be related to Anaconda’s own BUG, which is not compatible with Pycharm (maybe I have not found the relevant explanation yet)

here is my solution :

method 1 :

build environment by conda directly (not through Vartualenv to build virtual environment), managed by conda’s real environment as project environment, the disadvantages of doing so is that all use the same environment projects can see kit has no personalization is the same, and for any changes in the environment will have an effect on other projects, the safety factor is not high, but this method the effect is very good.

method 2 :

the environment is created in pythonw.exe, still using the virtual environment, but without Windows (the specific pythonw.exe difference is visible from the portal)

======================================2019-11-28_Edit_log=========================================

for the previous scheme can not solve the problem, I found a new method today, you can try

if you need

because the permission denial only occurs in python3’s Anaconda managed version so I’ll use this as an example of

is the same as before, the normal way of creating it, it will report an error

>

>

>

>

>

the steps are as follows :

1. Settings – & gt;

find project interpreter add location

2. Click to add the interpreter for python3, or if python3 does not have an interpreter, click show all to add the interpreter

3. Finally, click “apply ok”, and we can see the required version interpreter and virtual environment in the project

above is some of my experience summary, hope to be helpful to friends

Read More: