I am trying to install to oct2py package to import in my python script. However whenever I run the command pip install oct2py I get the following error:
Fatal error in launcher: Unable to create process using '"c:\python37\python.exe" "C:\Program Files\Python37\Scripts\pip.exe" ': file cannot be found.
How can I install oct2py?
Found the answer
Deinstalled python and reinstalled it. I checked the environment variable and changed it from this one : 'C:\Program Files\Python39' to this one 'C:\Users\lsee\AppData\Local\Programs\Python\Python39'.
Is unable to locate your pip installer, easy fix is unusually to either upgrade or test pip :
# to upgrade your pip
python -m pip install --upgrade pip
pip --version
# test you have pip in your machine
If your pip version is showing that means you have it installed, it could be a problem activating your virtual environnement, or your path.
It says the file cannot be locate, are you sure your path for Python and pip is correct ?
Try:
python -m pip install oct2py
This should work (as python -m pip install gave not errors)
Related
When I am trying to install the Python 3.7.1 It installed the Python 3.7.1. I can also check the pip install checkbox. Later I am trying to install pip in cmd. The below error occurs. When I try to see the pip.exe file in Python37/Scripts it shows an empty folder. I don't know what to do and what is the issue. Please help me because it was my study project to do.
Your pip is not setup during installation, you can re-run the python installer and make sure to check the option to install pip or simply access pip using:
python3 -m pip
All commands are the same,so you can install packages like:
python3 -m pip install cython
Hope this works for you!
After updating to the newest version of pip (19.3.1) with python 3.7.3, I can no longer use pip. When I run pip install package, I get the following error: TypeError: 'module' object is not callable. When trying to fix this error, I found that a common suggestion was running python -m pip install package. While this fixed my original problem, I get this different error: ModuleNotFoundError: No module named 'pip._vendor.requests._internal_utils'. Keep in mind I am on Windows 10 If anyone can help me, it would be very much appreciated!
I cannot guarantee a solution, here are a few suggestions to try:
pip3 install package
If that doesn't work:
python -m pip install package
If it still does not behave, try the following command which will reinstall pip.
python -m pip install --upgrade --force-reinstall pip
The final option is to uninstall python and reinstall your desired 64bit version of Python.
i am using
python --version
Python 3.7.4
pip --version
pip 19.0.3 from c:\users\lijin.durairaj\appdata\local\programs\python\python37-32\lib\site-packages\pip (python 3.7)
now, i try to install packages using pip, like this
python -m pip install --user requests
but when i execute this command i am getting error like this
i tried to install the packages along with the proxy set, like this
pip install --proxy=https://[username:password#]proxyserver:port requests
but i am getting the same error, could someone help me on how to solve it, thanks
UPDATE-1
I even tried to navigate to the scripts directory and do a pip install, like this
C:\Users\lijin.durairaj\AppData\Local\Programs\Python\Python37-32\Scripts>pip install matplotlib
but i am getting the same error
I'm trying to install new modules in python 3 and when I run python -m pip install filename on my win10 machine then I'm getting:
Using cached https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz
Error [WinError 87] The parameter is incorrect while executing command python setup.py egg_info
Could not install packages due to an EnvironmentError: [WinError 87] The parameter is incorrect
I tried to run PowerShell as an admin but the problem persists. I also tried to run this command in the cmd.
I received the same error message when executing a pip install numwords2 from the Pycharm console.
I then upgraded pip, using:
python -m pip install --upgrade pip
which uninstalled pip-19.1.1 and replaced it with pip-19.3.1.
The next whack at pip install worked well.
termcolor is quite old, the last release 1.1.0 was in 2011. There is a report that Python 3.6+ broke termcolor.
My recommendation is to try console.
Windows 10 Enterprise version 10.0.1.15063 build 15063. Tried both pip and pip3:
pip install scipy
pip3 install scipy
Both didn't work. Even tried to specify path of python directory, still didn't work.
If you're using Windows, open Command Prompt (CMD) and run this command
run python pip -m install [module]
OR
run py pip -m install [module]
Finally installed.
Just updated git and ran the same command again "pip install scipy"
but this time it worked and installed the library.