Python Forum

Full Version: Problem after changing Python directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

Well, I am still learning Python and I am following some tutorials to start. In the beginning, I installed Python in the default directory (Appdata), and installed Pycharm. After a while I uninstalled Python and reinstalled it in Programs (x86).

Now When I want to install Scrappy via "project interpreters", it gives error1 (attached)
And even when I use "pip install scrappy" it gives the error2 (attached)

error1:
Error1


error2:
Error2



So, what shall I do in this case?


Thank you
Hi,
In PyCharm you can setup different Python Environments and also define the interpreter. You can even go so far that you can tell PyCharm where to find it. The Environment and Interpreter you got while first installing everything is invalid since you reinstalled everything in a new path. Go to Settings and there select the Python Interpreter and create a new Environment where you define where to find the new python.
In the second part it seems that pip lacks authorization. It is always a good thing to install python modules only for one user and not system wide. (maybe this helps already: https://stackoverflow.com/questions/3117...on-windows )
If you want to make it very easy for yourself in general manage your python packages with anaconda ( https://www.anaconda.com/distribution/ )