Reputation: 113
ON WINDOWS, when trying to install packages or modules for Python 3.7. Eg.
When using the "pip install beautifulsoup4" command on cmd it just says:
""pip" isn't recognized as an internal or external command, program or executable batch file."
or
pyhton.exe: can't open file 'pip': [Errno 2] no such file or directory
I use jupyter notebook and when ive been able to run any instalation instead of showing the complete and correct instalation always shows Warning messages saying about it working with TLS or SSL but the SSL is not installed or somethign like so.
I'm checking if the moduls are getting installed with a little code
try:
import numpy
except ImportError:
print("Module not installed")
aparently numpy it does is installed but others are not getting installed
When using the "try" code i hope not to get the message and be able to use the modules.
Upvotes: 0
Views: 1278
Reputation: 1601
Yes. Even though python installed on Windows, it may be not pointing python path correctly.
Please ensure there is path for python in System environment.
Start -> type system environment -> Edit system environment -> System variables -> Path -> Please make sure you have path added for python -> Ok(Save).
And restart command prompt and run it again.
in command prompt,
py --version
or
python3 --version
This should be tell you the version of python
Also
pip --version
This should be work too.
Upvotes: 1
Reputation: 26
You probably didn't add Python to your Windows Path.
Here it is well explained how it works: (https://geek-university.com/python/add-python-to-the-windows-path/) :)
Upvotes: 1