Installed python installed on system of version 3.8.5 but there is an error with pip. pip is not installed
Below is the path
C:\Users\Comp1\AppData\Local\Programs\Python\Python38-32\Scripts
Found some results and tried running python get-pip.py from cmd but didn't work.
Also checked PATH and was correct
After using pip command in cmd it gives "pip is not recoganized"
Please let me know how can I fix this issue.
Related
I'm trying to install pygubu-designer, but the 'pygubu-designer.exe' never shows up in any of the folders after the installation process.
https://github.com/alejandroautalan/pygubu
https://github.com/alejandroautalan/pygubu-designer
I did:
pip install pygubu
cmd
pip install pygubu-designer
cmd
I have couple of folders with pygubu but pygubu-designer.exe is missing
explorer
I have python 3.10.4 and pip 20.0.4 and python is added as system variable:
cmd
I tried to upgrade pip version but it did not work
Could not locate pygubudesigner within my python310\Scripts folder and any other but the cmd command mentioned in this issue: https://github.com/alejandroautalan/pygubu/issues/222 worked for me
python -m pygubudesigner
I have Python installed in c:\users\dan\appdata\roaming\python\python38\python.exe. pip install is working correctly and I can run Python programs in my IDE. My problem is when I try to install something with pipx I get the following error:
C:\Users\dan>pipx install eth-brownie
No Python at 'c:\users\dan\appdata\local\programs\python\python38\python.exe'
Fatal error from pip prevented installation. Full pip output in file:
C:\Users\dan\.local\pipx\logs\cmd_2021-11-22_01.21.33_pip_errors.log
Error installing eth-brownie.
I understand pipx seeks python.exe in a wrong directory, but I don't know why because Python were installed to a different location and paths are fine (PYTHONPATH = C:\Users\dan\AppData\Roaming\Python\Python38). My question is that how can make pipx to search python.exe in \appdata\roaming\python\python38\ instead of appdata\local\programs\python\python38\?
(cmd_2021-11-22_01.21.33_pip_errors.log is not existing in the folder where the error messages points, therefore I couldn't see that log)
Uninstall pipx with pip uninstall pipx. Then remove the $home/.local/pipx directory completely. Use get-command pipx in a PowerShell prompt to find out if there are older (and corrupt) copies of pipx installed somewhere. Remove them also. Then reinstall pipx.
I am on Windows 10, running python 3.8.5 and have tried installing PyPDF2 using pip. I've uninstalled and reinstalled several times using these two commands:
"python -m pip install pypdf2"
"py -3 -m pip install pypdf2"
I did this through Visual Studio code being run as my user, as well as the command prompt run as an administrator. The install goes well but I get the error, "Import 'PyPDF2' could not be resolved."
I figure this is due to the file path to the installed package not being included in the PATH system environment variable. So I used "python -m pip show pypdf2" to find the install location:
"c:\users*username*\appdata\local\programs\python\python38\lib\site-packages"
So I added:
"c:\users*username*\appdata\local\programs\python\python38\lib\site-packages\PyPDF2" to my PATH environment variable for both user and system, as well as the PYTHONPATH variable.
After such actions I restarted VS Code, which again is using the python 3.8.5 environment, and still the import could not be resolved.
What am I missing? Any assistance would be greatly appreciated.
I am using python 3.9.6. But when I typed like this in command prompt,
"pip install pypdf2"
it worked for me. Try like this sometimes it'll work.
I am using Python 2.7.9 on a Windows 8 computer.
I tried to install lxml by typing pip install lxmlin Windows PowerShell after typing python, but I get the following error: SyntaxError: invalid syntax
I tried installing pip by using the following tutorial http://www.tylerbutler.com/2012/05/how-to-install-python-pip-and-virtualenv-on-windows-with-powershell/ only to later realize that I already had pip.exe, pip2.7.exe and pip2.exe installed when I first installed Python. They are located in the C:\Python27\Scripts directory.
Yet, if I try something like pip help I will get an invalid syntax error.
Do I have to reinstall pip or how do I get it to work in order to install the lxml library.
Thank you for any help you can provide.
I had the same problem. You need to set the PATH environment variable, so that the system recognizes the command "pip".
If typing easy_install or pip [in PowerShell] doesn’t work, it means the Scripts folder is not in your path. Run the next command in that case (Note that this command must be run only once or your PATH will get longer and longer). Make sure to replace c:\Python33\Scripts with the correct location of your Python installation:
setx PATH "%PATH%;C:\Python33\Scripts"
Close and reopen PowerShell after running this command.
Source: http://arunrocks.com/guide-to-install-python-or-pip-on-windows/
Starting from Python versions 2.7.9 and 3.4.0, 'pip' is already included in the regular install. Check if the path to the 'Scripts' directory inside your Python installation directory is contained in your system's 'PATH' environment variable, so 'pip' can be found.
Look here for more information:
How do I install pip on Windows?
Edit: Sounds like you are trying to run pip inside python, You shouldn't get an 'invalid syntax' error through the command prompt. More like "'pip' is not recognized". Try simply just opening command prompt and typing 'pip help'
I am trying to install the oauth package from the PYPI list of standard directories by submitting the following code to command prompt:
pip install oauth==1.0.1
This is to install the specific version 1.0.1 of 'oauth'. However I am getting the following error message:
pip is not recognised as an internal or external command
I am using Python 3.3 on Windows 8 and have installed Pip via Command Prompt using the code:
Get-Pip.py
What am I doing wrong?
Your python Scripts directory wasn't added to your Windows path. Typically, this path is C:\Python3x\Scripts where the x is the minor version of Python you have installed (ie. 3 for Python 3.3 or 4 for Python 3.4)
Once that is added to your path, you can open a new command prompt and use pip.
If you don't want (or can't) alter your path variable, you can also add the full path to your command to get it to work
C:\Python3x\Scripts\pip.exe install oauth==1.0.1
Again, the x will follow the above values for the minor version of Python.
Look at the subfolder \Scripts in your Python3 instalation path.
Check if there is the pip.exe file or pip3.exe or pip3.3.exe.
In my instalation there is the pip3.exe file, so I need to write pip3 install oauth==1.0.1