Installation of pycharm, python, pip from administrator account not playing well with users
I am having a heck of a time installing an IDE, python and pip to play well across user accounts.
I have started a new job, where I am allowed to work on school/programming stuff at work. I've even been given the go-ahead to install everything I need on my work computer (two nice big monitors!).
I have also been given administrative login, as I can't install anything on my regular account.
So, I log in to the admin account and followed the documentation on how to install Python and Pip for all users:
- Check option for install for all uses
- Check Add Python 3.8 to path
- Select Customize installation
- Again select Install for all users
- Ensure the installation path is not in a user directory but rather in C:/Programs/Python...
- Install PyCharm IDE
Great. Done. I reboot my machine and login to my humble user account and clone a project from GitHub.
Ok, so I want to add a package using pip... First thing I notice is that pip install <package>
doesn't work at all. I get a type error.
Next, I try py pip install <package>
and that gets things going, but of course fails after downloading the package. I don't have access to install it.
So I read the solution is to use py pip install <package> --user
, which proceeds to tell me that installation is complete and successful with one warning:
WARNING: The script f2py.exe is installed in 'C:\Users\WNeill\AppData\Roaming\Python\Python38\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
I find this interesting, since that's not where I installed Python. Also I find it interesting, because I had the installer add Python to the PATH. I verify my python installation is indeed in my machine's "Program Files" and satisfied that it is, I look up the f2py.script and find that it is part of the package I just tried to install.
A little wierded out, I type my import
statement. Sure enough. No dice.
At this point, I'm a bit tired of running back and forth between two different user accounts repeatedly installing things and uninstalling them. I've been at it for about 6 hours. Is there a way to make python, my IDE and pip all play nicely together or should I just go back to bringing my personal laptop to work and forget my dreams of coding on one big screen with documentation up on the other?
CONTEXT: I am NOT savvy with the command line. I know less than the basics. I am also not tech savvy in general. Please explain as if to a child!
Please sign in to leave a comment.
Hi!
From your description this line caught my attention the most:
> First thing I notice is that
pip install <package>
doesn't work at all. I get a type errorThis is exactly the command that PyCharm uses internally to install packages, so it's necessary to resolve issues with it.
If it's not working for your global environment, try creating virtualenv environment: https://virtualenv.pypa.io/en/latest/