problem arising while installing pandas library in python [duplicate] - python

This question already has answers here:
'pip' is not recognized as an internal or external command
(40 answers)
Closed 3 years ago.
i am installing pandas for python on windows 10.
this is the code i am typing in cmd:
pip install pandas
normally this should have led to the installation of pandas. however, i am getting the following error in cmd:
C:>pip install pandas
'pip' is not recognized as an internal or external command,
operable program or batch file.
i have installed anaconda before.

I would first guess that pip is not installed. Which version of Python are you using? Is python set in your path correctly?
If python 3, pip should be installed, not always the case with python 2. You can use this
https://bootstrap.pypa.io/get-pip.py. This should set you straight.

OS : Widwos
Follow the link "https://www.liquidweb.com/kb/install-pip-windows/" to install pip

Related

PyCharm install package with square brackets [duplicate]

This question already has answers here:
'pip' is not recognized as an internal or external command
(40 answers)
Closed 1 year ago.
I want to install "stabe-baselines3[extra]"
But in the PyCharm Package installer is only "stable-baselines3" available.
When try to install it via 'pip install' I do get this error:
Translation: 'pip' is not recognized as an internal or external command
How do I get the [extra]?
From: https://github.com/DLR-RM/stable-baselines3
So are you actually needing that additional functionality for atari games?
If so, then you can just use the built-in Terminal to manually install the package you are needing:
Which if you didn't already know, can be found right here:
Otherwise, you can just use stable-baselines3, as you have already found is available within the package manager.
The terminal has to be used. Reason the terminal hasn't worked is because in the settings 'Start directory' hasn't been the Python Scripts folder but the main-file folder.
After that folder change the pip install command worked!

pip install pyodbc is not working on python [duplicate]

This question already has answers here:
Why does "pip install" inside Python raise a SyntaxError?
(7 answers)
Closed 2 years ago.
I installed Python on my Windows 10 computer
when I try to run my python code
I get error
ModuleNotFoundError: No module named 'pyodbc'
I checked multiple questions here and the solution is to pip pyodbc
I tried that
pip install pyodbc
but i get error
SyntaxError: invalid syntax
I checked similar propblems here and it seems that pip is not installed.
I unistalled and reinstalled python from python.org and still same issue!
any solution?
Edit
I did as suggested to try from command prompt
but still same error
I installed Python with ticking the option to include environment variables option.
Edit 2 :
I think the problem was that I was trying to install from witthin python.
I misunderstood the answers, I have to run pip as an application outside of python. to allocate pop.exe and then do pip install.
You are trying to install the package from python interpreter (IDLE) which is wrong. You should only import package from IDLE terminal (python session) which IDLE has access to.
Try this link to install the package --> https://pip.pypa.io/en/latest/installing/
You would run pip from a shell, not from the IDLE. However, pyodbc requires the Microsoft ODBC Driver. More information about installing the pyodbc module can be seen in this guide. This Stack Overflow answer can also help.
Normally, you run pip from a shell, not from a Python interactive session.
C:\PATHTOPYTHON\python.exe pip install <<SOMEPACKAGE>>
See the following thread, if you want to install from within a Python interactive session.

How do I install matplotlib on pyCharm [duplicate]

This question already has answers here:
Can't install matplotlib to pycharm
(3 answers)
Closed 2 years ago.
I'm new to python and I'm using PyCharm as my IDE. I've been able to successfully install other packages like numpy, pandas etc. However, when I'm installing matplotlib, I keep getting the error:
src/checkdep_freetype2.c(5): fatal error C1189: #error: "FreeType version 2.3 or higher is required. You may set the MPLLOCALFREETYPE environment variable to 1 to let Matplotlib download it."
I installed it through the command prompt and it installed correctly but (I believe) PyCharm creates it's own environment and does not recognize packages installed through command prompt even though I tried to install them in the same path as other packages in PyCharm. Can you please help?
I had to run the command "pip install updates" and after that I could install the matplotlib package. It turns out that my pip wasn't of the latest version.

installing xlrd in to python3.6 [duplicate]

This question already has answers here:
'pip' is not recognized as an internal or external command
(40 answers)
Closed 4 years ago.
I have been trying to install xlrd into my computer but keep on popping out the below error msg.
'pip' is not recognized as an internal or external command,
operable program or batch file.
I am not sure what I am doing wrong here.
Version of Python is 3.6 in my computer
Thanks
you should be doing python3 -m pip install xlrd
This is because pip is a module within python not an actual command on your computer.

Installing Python SpeechRecognition package [duplicate]

This question already has answers here:
ERROR:'keytool' is not recognized as an internal or external command, operable program or batch file
(33 answers)
'pip' is not recognized as an internal or external command
(40 answers)
Closed 6 years ago.
Can someone please advise me how to download and install speech_recognition?
I am currently using Python 2.7.12 on Windows 10.
Should I use the command prompt? If yes, can you please show me exactly what I should write in the commands.
I wrote pip install SpeechRecognition in the command prompt. But am getting this error:
'pip' is not recognized as an internal or external command, operable program or batch file'
You can try this
c:\python27\scripts\pip.exe install SpeechRecognition
now if that doesn't work its probably that your pip is broken you'll need to uninstall python and install it again.
You can also run this from cmd: (for those getting an error with the above dir..)
python -m pip install SpeechRecognition
It hope it will work

Categories

Resources