This question already has answers here:
Using pip on Windows installed with both python 2.7 and 3.5
(8 answers)
Closed 1 year ago.
In the cmd when I type where pip I get the following results
F:\python39\Scripts\pip.exe
F:\python38\Scripts\pip.exe
F:\miniconda_pf\Scripts\pip.exe
Now I would like to install a package, let's say in the python38 folder, how can I do that?
It seems like you're using conda, so you can use conda activate [environment name] and use install pip modules.
Related
This question already has answers here:
'pip' is not recognized as an internal or external command
(40 answers)
Closed 1 year ago.
pip not working with any followed commands:
pip is not showing anywhere:
It sounds like you may not have pip installed, judging from your pictures. If so type this to check python -m pip --version.
If you don't have it installed, perhaps try python -m pip install.
If you do have pip installed and are trying to install pygame, I suggest trying python -m pip install pygame.
I also found that using python didn't work but replacing it with py did. I did these things (a while ago) in terminal on a windows 10 machine, so my suggestions may not be relevant.
This question already has answers here:
How to run pip from different versions of python using the python command?
(4 answers)
Closed 4 years ago.
I have installed Python 3.7 I can use Python 3.7 by typing python3 command in terminal.
However if i type pip --version or pip3 --version it prints pip 18.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5) in either case. So i cannot install packages to use with Python3.7
How can i set pip3 path and Python version to use it with Python3.7 ?
BTW i use Raspbian Stretch as OS.
Your path is probably not properly configured.
In general, it's best to leave system Python version untouched to avoid breaking things.
I would recommend using pyenv to manage and easily switch Python versions. It can easily work with virtual environments as well, or even as a substitute.
Install from here: https://github.com/pyenv/pyenv#installation
This question already has answers here:
How to install PyPi packages using anaconda conda command
(3 answers)
Closed 4 years ago.
I use Anaconda as the main source of python packages and also my main interpreter in PyCharm. If I want to install any package, I go to Anaconda Cloud and find it immediately something like this. Now, I want to install a package that only exists in Python Package Index here. I cannot find it in Anaconda Cloud so I don't know how to install it. Do I just need to include the package folder in the project directory in this case?
Thank you
You can install non-conda packages using pip:
pip install python-nonblock
This question already has answers here:
Why does "pip install" inside Python raise a SyntaxError?
(7 answers)
Closed 5 years ago.
trying to use pip to install a library is getting me a syntax error . i tried everything on the internet , the only way to install a module using pip is an answer i found here: Why does "pip install" inside Python raise a SyntaxError?
which states:
import pip
package_name='selenium'
pip.main(['install', package_name])
is there a way to fix pip here so that i use the normal syntax like:
pip install somemodule
Some other answers where about changing the environment variables however they did not specify how to do that on Windows 7
You can use the windwos shell (cmd.exe) to install selenium using pip.
Search the directory of your python installation, inside it is a folder called scripts. Open it and in scripts hold shift and right-click. Now you get a context menu where you can choose open console in this folder (or something similar, my windows is not english).
If you have your windows shell in scripts, type:
pip install --upgrade pip
to get the newest pip version.
Now you can install selenium with:
pip install selenium
This question already has answers here:
Find all packages installed with easy_install/pip?
(18 answers)
Closed 8 years ago.
I'm new to python, and I installed so many libraries, so I forgot what I installed and not.
I'd like to get a list of libraries I've installed. Any help would be grateful.
I'm using mac OS 10.9.2
Use pip list or install yolk with pip install yolk and then yolk -l.
Go to your Python > IDLE (Python GUI) and type this:
help('modules')
The others has given some links for the answers as well