Pip is not installing
Solved
Hello, I would like to install Ursina Engine for Python but I need pip. I tried to install it but when I run the command
What should I do to install it, please?
Thank you in advance.
P.S. I have Python version 3.9.1.
pip installthe command prompt tells me that pip is not recognized as an internal or external command.
What should I do to install it, please?
Thank you in advance.
P.S. I have Python version 3.9.1.
2 answers
-
ModeratorHello,
If you're on Linux (please specify your distribution), you need to install the appropriate package. In what follows, I'm assuming you're on Debian or a derivative distribution (Ubuntu, Mint, ...) that usesapt
as its package manager:- Python2:
sudo apt install python-pip
(thepip
command will then be available) - Python3:
sudo apt install python3-pip
(thepip3
command will then be available).
Note that when you have the option, it's advisable to install a Python module via APT first rather than usingpip
(these packages have a name that starts withpython-*
for Python2 andpython3-*
for Python3).
Example: to install numpy in Python3, you prefersudo apt install python3-numpy
tosudo pip3 install numpy
.
Good luck.-
-
-
@mamiemandoI tried, but I'm stuck when I need to run the command
cd folder_name
: it tells me that this folder does not exist. -
@mamiemandoI already have
pip
. The problem is that, for example, I want to installguizero
. I run the commandpip install guizero
and it displays this'pip' is not recognized as an internal or external command,
... even though I have
operable program or batch file.pip
. -
Moderator@ilyascHello
I'm stuck at the point where I have to run the commandcd the_name_of_the_folder
I don't know what your commandcd the_name_of_the_folder
refers to, butthe_name_of_the_folder
should be replaced with the path of the folder you want to navigate to.
I've already piped the problem that, for example, if I want to install guizero, I run the command pip install guizero and it shows me this
It may not be correctly installed, or at least pip.exe might not be located in a folder referenced in your environment variable$Env:Path
. According to this tutorial, you must have missed something before step 5 (because ifpip install
does not work, you probably did not successfully complete step 5).
In which folder is yourpip
executable located? What does your variable$Env:Path
show in PowerShell?
Good luck
- Python2:
-
Hello,
I am on Windows 10
To install a module, I type the following command in the command prompt:
python -m pip install module_name
example:
python -m pip install simpleaudio-
-
Moderator@ilyascIn my opinion, you should reinstall your Python setup. For example, see this tutorial.
Good luck -
@mamiemandoDoes it work with PyCharm too?
-
Moderator@ilyasc
pycharm
is a Python development environment, while Anaconda is a Python distribution.- A development environment is just an advanced text editor suitable for programming.
- A Python distribution allows you to run a program coded in Python (including
pip
).
-
@mamiemandoWhat does that mean?
-
