Today I tried to create a new python project unsing Pycharm, with Python3.2
. But I figured out that something is wrong.
When I tried to find the path of my python interpreter, I get that one:
Python 3.2 (r32, Apr 18 2018)
>>> import sys
>>> print(sys.executable)
/usr/local/bin/python3.2
So I put this path on the filling section Base interpreter.
Windows python interpreter Pycharm Project
But when pressing button Create project, this error occurs:
Traceback (most recent call last):
File "/home/David/pycharm-community-2018.1.1/helpers/packaging_tool.py", line 159, in main
retcode = do_untar(name)
File "/home/David/pycharm-community-2018.1.1/helpers/packaging_tool.py", line 100, in do_untar
tar = tarfile.open(name)
File "/usr/local/lib/python3.2/tarfile.py", line 1744, in open
raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully
Could someone tell me what is wrong? Thanks.
I've got stuck with exactly the same thing and found the answer here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206601205-Can-t-Install-setuptools-from-within-PyCharm-on-Linux?page=1
You have to compile zlib and recompile python with zlib headers path.
Here's how to compile Python (don't forget the -with-zlib
part):
https://stackabuse.com/install-python-on-mac-osx/#installpythonfromsource
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With