Upgrade pip from 10 to 18 - python-3.x

I am trying to install the robotframework.
I am on a windows machine and on the command line I entered:
pip install robotframework
But pip asks me to upgrade pip from 10 to 18, so I use this command:
python -m pip install --upgrade pip
This resulted in an error message:
Could not install packages due to an EnvironmentError: [WinError 5]
Accès refusé : `c:\\program files (x86)\\python37-32\\lib\\site-packages\\pip-10.0.1.dist-inf o\\entry_points.txt`
Consider using the `--user` option or check the permissions.
How can I fix this?

If you are using a 64 bit version of python I guess this will work for you:
Try opening the command prompt with administrator privileges and update pip from here.

Related

Installations of third parties packages using pip on my command prompt

I’m trying to install some third party packages on my command prompt using pip so I can import them in my own code but the thing is bringing out this error below
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\program files\python38\Lib\site-packages\asgiref'
Consider using the --user option or check the permissions.
WARNING: You are using pip version 19.2.3, however version 22.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Error when trying to install oct2py package

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)

How to uninstall all versions of pip on Mac Catalina OS

I got a new MacBook and transferred some apps over from my old MacBook with the Migration Assistant. I had pip installed on my old Mac. I didn't think it would be installed on the new Mac so I attempted to install in using the following command:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
followed by:
python3 get-pip.py
When I tried to check if it was installed with pip3 --version I received the following warning:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
I've tried uninstalling pip with python3 -m pip uninstall pip setuptools, but this only produces [Errno 13] Permission denied errors. I've tried using chmod 755 to change the permissions of the python files that show up when I run ls -la but it doesn't seem to change anything and I still get the [Errno 13] errors.
Is there a way to change all permission on my Mac? Or else is there a way to uninstall all versions of pip?
I also have Conda installed, but I dont think that is an issue here.
Thanks.

Python 3 - WinError 87 when installing new modules

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.

TensorFlow installation denied due to user permissions

I tried to run tensorflow on Jupiter netbook, python 2.7 but I realized it requiered 3.6 pythong version so I followed this steps :
Installing with Anaconda
Create a conda environment named tensorflow by invoking the following command:
C:> conda create -n tensorflow pip python=3.5
Activate the conda environment by issuing the following command:
C:> activate tensorflow
(tensorflow)C:> # Your prompt should change
Issue the appropriate command to install TensorFlow inside your conda environment. To install the CPU-only version of TensorFlow, enter the following command:
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow
To install the GPU version of TensorFlow, enter the following command (on a single line):
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow-gpu
**
But this line of code
**
(tensorflow)C:> pip install --ignore-installed --upgrade tensorflow
Show me the this error:
Could not install packages due to an EnvironmentError: [WinError 5]
Access is denied:
'C:\Users\idan\AppData\Local\Continuum\anaconda2\envs\tensorflow\Lib\site-packages\numpy\.libs\libopenblas.BNVRK7633HSX7YVO2TADGR4A5KEKXJAW.gfortran-win_amd64.dll'
Consider using the --user option or check the permissions.
I tried to change user permission and also open anaconda cmd as administrator but it doesn't help.
This answer has the necessary information for the pip permission error. It can be resolved with the --user flag, which is a conservative approach.
There is another way to install tensorflow for conda-environment. Write below on the Anaconda Command Prompt after activating environment.
conda install tensorflow
Test it :
python
import tensorflow as tf
And it should work.
I had the similar problem. The following solved mine.
Try updating the LD_LIBRARY_PATH using the following:
sudo ldconfig /usr/local/cuda/lib64
I found the solution from https://abdel.me/2017/09/28/aws-ami-deep-learning-keras/

Resources