Python Forum
Problem after changing Python directory
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem after changing Python directory
#1
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
Reply
#2
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/ )
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Virtual Env changing mysql connection string in python Fredesetes 0 370 Dec-20-2023, 04:06 PM
Last Post: Fredesetes
  Changing a string value to a numerical value using python code and a lamda function Led_Zeppelin 6 1,598 Jul-05-2022, 11:29 PM
Last Post: deanhystad
  changing Python files to .exe alok 2 2,231 Jul-20-2021, 02:49 PM
Last Post: alok
  problem with sphinx and file directory in script kiyoshi7 0 2,283 Mar-11-2021, 03:52 PM
Last Post: kiyoshi7
  Changing Index of 2 List in python giddyhead 0 1,659 Mar-05-2021, 05:45 PM
Last Post: giddyhead
  Automating to run python script 100 times by changing parameters pmt 1 2,595 Dec-29-2020, 10:31 AM
Last Post: andydoc
  Changing to new Python formatting example leodavinci1990 3 2,021 Sep-22-2020, 07:36 PM
Last Post: yaythomas
  changing animation speed using buttons in python microwave 1 2,111 Jun-24-2020, 05:21 PM
Last Post: GOTO10
  Solve Pynput Problem when changing language? ppel123 0 2,273 Feb-19-2020, 03:38 PM
Last Post: ppel123
  changing the process command line arguments in python Skaperen 3 3,002 Aug-19-2019, 02:40 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020