7
votes

In trying to install packages in Pycharm for the Python 3.6 interpreter, I get

Python packaging tools not found. *Install packaging tools*

And when I tried to install it gives me this error

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm Community Edition 
2017.3.1\helpers\packaging_tool.py", line 2, in <module>
    import traceback
ModuleNotFoundError: No module named 'traceback'

I'm using Pycharm 2017.3.1 Community Edition

3
Check your environement variables for your PATH configuration. For Windows it's somewhere under Advanced System Settings > Environment Varibles > System Varibles. See this page it might help stackoverflow.com/questions/338768/… - Hunter Frazier

3 Answers

2
votes

From pycharm,

goto settings -> project Interpreter

Click on + button on top right corner and you will get pop-up window of Available packages. Then search for packaging python package.

Then click on Install package to install the package.

2
votes

I had a similar issue. In the end I had to remove an existing venv that was in the same location, delete multiple interpreters, then set up a new one.

0
votes

The accepted answer wouldn't directly work if you have already created a Virtual environment. That virtual environment would not be usable. So, go ahead and delete it.

Then, go and install the packaging module in the base python version, as shown in the accepted answer and then create a new virtual environment.

That new virtual environment can now be used.