Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python3.5.0 and Pycharm interpreter error

Python3.5.0 downloaded to specific place

I install to my home/test/python3.5.0

Pycharm downloaded

I install Pycharm via sudo apt-get-repository ppa:mystic-mirage/pycharm

Pycharm interpreter

I want to use specific interpreter inside test/python3.5.0's pyhton.exe but give me error like this.

Firstly,

Python packaging tools not found. Install packaging tools.

Then I press it,

Failed to install Python packaging tool

Execute command

/usr/lib/pycharm-community/helpers/packaging_tool.py untar 
/usr/lib/pycharm-community/helpers/setuptools-18.1.tar.gz

Error occured

tarfile.ReadError: file could not be opened successfully

How can I solve this problem ?

like image 208
TeyteyLan Avatar asked Jan 20 '26 12:01

TeyteyLan


1 Answers

  1. Create your virtualenv

  2. Go to "Add new interpreter" -> "Add local interpreter" -> "Create new".

    The "base python" is the python.exe of your virtual environment, and the "Location" must be a non-existing new folder to where the virtual environment is installed or something. Nobody knows how pycharm works.

Also you might have to repeat these steps every two weeks or so, because when you do not work with pycharm it forgets the interpreter settings. Happend to me the second time already.

like image 54
Alex Avatar answered Jan 23 '26 02:01

Alex