When trying to install cPickle using pycharm I get this:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Edwin\AppData\Local\Temp\pycharm-packaging\cpickle
You are using pip version 7.1.2, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
So then when I go command prompt to type in:
python -m pip install --upgrade pip
I get this:
'python' is not recognized as an internal or external command, operable program or batch file.
So how do I install cPickle?
BTW: I am using windows & python 3.5.1
As suggested in the comments, this is most likely because Python is not added to your environment variables. If you do not want to touch your environment variables, and assuming your Python is installed in C:\Python35\,
Navigate tp C:\Python35\ in Windows Explorer
Go to the address bar and type cmd to shoot up a command prompt in that directory
Alternatively to steps 1 and 2, directly shoot up a command prompt, and cd to your Python installation Directory (default: C:\Python35)
Type python -m pip install pip --upgrade there
Related
I'm trying to install instaloader and running into problems.
IU've downloaded the github file, extracted it, installed python and pip, i think. Now while runninng
pip3 install instaloader
in the windows command prompt its responding:
'pip3' is not recognized as an internal or external command,
operable program or batch file.
I've tried installing pip3 by running pip install pip in both python and command prompt, uninstalling and reinstalling python. Do i need to add python to the PATH?
You can try to install pip by 'python get-pip.py' rather than 'pip install pip'.
I was trying to install a python library using pip install.
My python version: 3.10.4
So, I got this message: "WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available.
You should consider upgrading via the 'C:\Users\user\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command."
Now, following the usual procedure(from multiple Youtube videos) used the command "--upgrade pip" in both command prompt and Powershell in the correct directories
Got the following errors: '-m' is not recognized as an internal or external command,
operable program or batch file. (in command prompt)
Can someone please help with this. Thanks!
Your error message already suggests to you that you should use python -m pip install --upgrade pip,This command to update pip in your environment.
To install the library, you can use a command like python -m pip install django.
For more pip commands, you can refer to this link.
Hope this helps you.
I installed pip on my windows 10 with python 3.8.3 already there. The command prompt displays the message 'successfully installed pip latest version'.I have checked in the environment variables and done what was needed through tutorials. After that it stopped saying that:
pip is not recognized as an internal or external program or batch file
But then when I entered 'pip --version' in the command prompt, it said invalid syntax.
I downloaded the get-pip.py file too, ran it and it installed all the dependencies and everything but the command prompt still said invalid syntax.
What should I do? I am a new self-taught programmer. Help please.
I would suggest you that you try ensurepip command first and then try to check the version using:
python -m ensurepip --user
python -m pip --version
The ensurepip should fix your installation problems if any.
If ensurepip takes you back to the older installation, use the below command to upgrade it:
python -m pip install --user --upgrade pip
I'm trying to import matplotlib to python 3.7, but I keep getting
ModuleNotFoundError: No module named 'matplotlib'
despite the fact that I downloaded it in my Anaconda Prompt (Anaconda3) using
python -m pip install -U pip
python -m pip install -U matplotlib
What am I doing wrong here? And how get I get matplotlib
You are using Python 3.7, so the Python packages need to be compatible with Python 3.x, not Python 2.x. Run the following commands.
python3 -m pip install -U pip
Print the pip3 version to verify the installation:
pip3 --version
Install matplotlib:
pip3 install -U matplotlib
first install pip via get-pip.
Then install matplotlib by this command pip install matplotlib
NOTE:type all these commands first in powershell or cmd and then try it on your IDE's console.
NOTE2: In case you don't know how to download get-pip, simply right-click and click on save as.... button once after you clicked on the link included above, and then save it in your Desktop, Then go to powershell using cd C:/Users/(You'r username)/Desktop and then run python get-pip.py command, when you made sure that pip is fully installed in powershell or cmd, then you can install it in your IDE's console for once and then run pip install matplotlib or python -m pip install -U pip
python -m pip install -U matplotlib as you suggested.
NOTE3:I Guess if all what I said above possibly may not work, you must uninstall python and reinstall it again, But with one difference, YOU MUST enable python add to path at the beginning of installation so that all what I said above works for you flawlessly
I am trying to install the PyInstaller module for python through the terminal on my mac, and it is not working.
I am trying to install this module so I can package a program. I have tried to install through terminal through different commands (e.g. "pip install pyinstaller), but it is not working, even though I know I have PIP correctly installed.
When trying to install, I type, python3 -m pip install pyinstaller.
The result is Command "/usr/local/bin/python3 -m pip install --ignore-installed --no-user --prefix /private/var/folders/w5/rlzrygt57j3c3nl4p29d2djc0000gw/T/pip-build-env-mjrd7sir https://files.pythonhosted.org/packages/b2/86/095d2f7829badc207c893dd4ac767e871f6cd547145df797ea26baea4e2e/setuptools-41.2.0-py2.py3-none-any.whl#sha256=4380abcf2a4ffd1a5ba22d687c6d690dce83b2b51c70e9c6d09f7e8c7e8040dc https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl#sha256=f4da1763d3becf2e2cd92a14a7c920f0f00eca30fdde9ea992c836685b9faf28" failed with error code 1 in None
I have upgraded PIP, and tried using sudo python3 -m pip install pyinstaller, but I am not in the sudoers file.
Please help
Create a virtual environment for your project in your project directory.
python3 -m venv env
source env/bin/activate
Test which python is activated
which python
This will show that your local python in the virtualenv you just created is now the current python
Try installing now using
pip install pyinstaller
This ought to work for you. Always use virtual environments for your projects instead of installing system wide libraries unless you really need to set this up for the system.