Environment location directory is not empty pycharm

Содержание
  1. 1 ответ
  2. Votes
  3. Share

Я только что установил PyCharm 2017.3.3 , и я пытаюсь запустить проект, написанный на python 3, но он не запускается. Я проверил страницу настройки, у которой есть только Python 2.7 interpreter. Как обновить интерпретатор до Python 3.x .

Я проверил официальный PyCahrm

1 ответ

Сначала найдите своего переводчика в своей системе Ubuntu, затем Выполните следующие действия:

  1. В меню файла нажмите или выберите settings :

  1. В левой панели выберите project name , затем щелкните правой кнопкой мыши project interpreter

  1. Щелкните правой кнопкой мыши стрелку вниз project interpreter и выберите show all из имеющихся там опций.

  1. В появившемся диалоговом окне нажмите кнопку + справа, затем нажмите текст Add Local , который появится.

  1. В появившемся диалоговом окне Add local interpreter выберите System Interpreter , затем нажмите на три точки справа и перейдите к местоположению моего python, usr/bin/python3.5 . И с этим вы должны использовать ваш проект в этой версии python.

I have just installed Anaconda 3.6 and PyCharm. I am trying to set up the interpreter, however if I navigate to the interpreter window I can see the error message saying "Conda executable not found" as well as "Environment location directory is not empty".

Please see the screenshot below. Do you have any suggestion what I could do? I deleted Anaconda and Pycharm already and re-installed them again without success. I must also say that my untitled folder under Location is already empty.

I’m trying to create a new python project but when I’m selecting a location it gives as message that location directory is not empty even if the directory is empty.

Votes

Share

I am using 2018.1 (just installed a few days ago). I am getting the same error.

Читайте также:  Можно ли сидеть с удаленной страницы вк

Here’s what I know about my situation.

I started to create a virtual environment, but after initial creation, couldn’t find my venv directory, so closed the project and then

deleted the entire directory.

I now try one more time to create a virtual environment with the same name as before, and even though I deleted the entire directory before starting, get the ‘Environment location directory is not empty’ error.

I was just having the same issue with the 2018.1 Community Edition. I was able to resolve the issue by deleting the project from my "virtualenvs" directory. After that I was able to recreate the project.

I am using 2018.1 version. And I got the same bug. I can`t change my project environment to a conda environment.

Asrivastava’s comment worked for me. I went into the file directory on my computer and deleted the "venv" file for the project and it worked.

maybe I made virtualenv environment bad, so I use System Interpreter

I am using 2018.2 version. but i got the same issue.how can I choose the environment I just created. hope the issue can be solved quickly!

Hello Friend!
Open the following shortcut (Ctrl + Alt + S), and click (Project: xxxx), now choose (Project Structure) and select (home / yourUser / PycharmProjects / XXXX / venv / bin) and right-click (Excluded) or (Alt + E).
Now click (+ Add Content Root) and see if it points to the following location (/ home / yourUser / PycharmProjects / XXXXX / venv / bin) and click OK.
Now close the IDE and open it again.

it seems that nobody can solve the problem. feel bad.

I solved this issue.

Settings > Project Interpreter>

1. Create virtual environment so that we can modify its path later.

Читайте также:  Ватсап перехватчик сообщений как установить

To add: Add > Select any empty directory in location field -> Select any previous executable in Base interpreter and apply setting.

After you created virtual environment.

Select last interpreter you created >

Locate your desirable virtualenv executable path and save the setting.

Restart the Pycharm and enjoy.

Thanks, olidebnedra@gmail.com for any other problem.

Just go to your Anaconda3 (in case you are using Anaconda3) folder and from there go to envs and then delete the folder of your project. Now you’ll be able to create a new project with the same name.

And you also need to delete it from PyCharm Project folder and that I think should be very obvious to you all.

I have added in the front of venv in this case venv27 in add Python Interpreter > New environment > Location "C:devkivyvenv" and worked for me. Thanks.

I solved this issue.

What you need to do is delete everything in the ven folder (/ home / yourUser / PycharmProjects / XXXXX / venv / bin), which is located in your project.

The reason is that your ven folder is the place where the environment location located in. If ven folder is not empty like you have already had python3.5 Project Interpreter, you want to change the Interpreter to python2.7, but python2.7 needs another empty folder to place it, then this error will occur.

Оцените статью
Добавить комментарий

Adblock
detector