This question already has answers here:
Error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat) when running Python script [duplicate]
(8 answers)
Closed 4 years ago.
I am trying to install pandas and I keep getting an error
Microsoft visual c++ 10.0 is required?
Is it really necessary to have it ? and how can I have it?
when I try to upgrade pip from 9 to 18, it says I should do it through python, how is that?
Thanks in advance
You should first try to upgrade your pip from version 9 to version 18.
If you have virtual environment. Then first activate your virtualenv or else if you have global python installed. They simply type the following command
pip install --upgrade pip
This will show the following output
(p_env) ➜ python_playground git:(master) ✗ pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 1.4MB/s
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-18.0
Once your pip is upgraded. Then type the following command to install pandas
pip install pandas
Related
My problem is that when I try to install a product that requires python >= 3.7, the installer fails, saying that it could not find the required python version, even though I do have python 3.8 installed.
I'm running Ubuntu for Windows 10 (the MS-store product.)
It comes with python 3.6 installed.
From a clean ubuntu install, I
sudo apt update
sudo apt install python3.8
sudo apt install python3-pip
At this point the command "python" is not mapped (not available), but I can run "python3" to get python3.6 or "python3.8" to get that version.
pip3 reports that it is using python 3.6.
pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
So it appears that pip is not recognizing the python 3.8 that I have.
When I attempt my product install, it fails, indicating that
sudo pip3 install --verbose (mypackage name)
(... various messages...)
(requires-python:>=3.7) is incompatible with the pythonversion in use. Acceptable python versions are:>=3.7
Could not find a version that satisfies the requirement cbordplatform (from versions: )
No matching distribution found for (my package name)
How can I get pip3 to recognize my python3.8?
If you want to make sure that pip is using the correct version of Python, call it with the specific Python like this:
python3.8 -m pip ...
This question already has answers here:
How do I install pip on Windows?
(40 answers)
Closed 4 years ago.
On my computer (windows 8.1) there is python 3.4.
When I try to install module with pip install the code that I use is:
py -m pip install ...
But the command line returns the following error:
C:\Python34\python.exe: No module named pip.__main__; 'pip' is a package and cannot be directly exec
uted
Pip is just not a standalone executable. It is a python module.
So as a matter of fact you can do this (Tested with numpy, worked correctly as wanted):
python -m pip install numpy
Well, you should see the documentation on Python.
I did mention that Pip is a standalone executable. If it is in you path then you can also do this:
pip install numpy
Make sure python is in your path.
This question already has answers here:
pip cannot uninstall <package>: "It is a distutils installed project"
(6 answers)
Closed 2 years ago.
Trying to install spyder using pip:
pip install spyder
This error pops up:
Cannot uninstall 'ipython'. It is a distutils installed project and
thus we cannot accurately determine which files belong to it which
would lead to only a partial uninstall.
You can upgrade ipython without uninstall the old version
sudo -H pip install --ignore-installed -U ipython
Just solved with:
sudo apt-get remove ipython
For Python 2:
pip install --upgrade --force-reinstall --no-cache-dir Spyder
For Python 3:
pip3 install --upgrade --force-reinstall --no-cache-dir Spyder
Some of the solutions listed may work, but this one solved my issue with distutils installed packages.
sudo apt-get remove python-ipython
Depending on what type of package it is, you will need to provide the "python-" for python packages.
Edit:
However, if this still does not solve your question, you might want to consider downgrading pip to an earlier version as pip 10 does not allow removal of distutils packages
sudo -H pip install pip==9.0.1
sudo pip uninstall ipython
Thank you for the comment, as I am looking to improve how I can help people.
I am trying to install tensorflow in Windows,
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py3-none-any.whl
The error I got is
Collecting protobuf>=3.4.0 (from tensorflow==1.9.0) Could not find a
version that satisfies the requirement protobuf>=3.4.0 (from
tensorflow==1.9.0) (from versions: ) No matching distribution found
for protobuf>=3.4.0 (from tensorflow==1.9.0)
I googled online and I couldn't find any solutions. I am using python 3.5 64 bit
If you are using Anaconda
Create a new environment or activate your existing environment
conda create -n Tensorflow_Environment python=3.6
activate Tensorflow_Environment
pip install --ignore-installed --upgrade tensorflow==1.9.0
You could refer Tensorflow Install for GPU version Installation
I installed python 3.5.4 and tried to install tensorflow but then pip started showing SSL certificate error. Googling online gave me a stackoverflow answer here.
The command that worked for me is
python -m pip install tensorflow --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org
I have just started using virtualenv from this tutorial, where it uses yolk to list the packages installed in the virtualenv, but yolk by default is for Python 2, so I decided to upgrade with an extension for Python 3, my current version, with the following command:
pip3 install --upgrade yolk3k
It works when I am not in the virtualenv that I called virt0, but if I am on it, it gives me the error it was giving me before upgrading it to the Python 3 version.
print " %s %s (%s)" % (project_name, dist.version,
^
SyntaxError: invalid syntax
When I tried to install yolk in the virt0, the output was the following:
Searching for yolk
Best match: yolk 0.4.3
Processing yolk-0.4.3-py3.4.egg
yolk 0.4.3 is already the active version in easy-install.pth
Installing yolk script to /Users/user/Desktop/virt_env/virt0/bin
Using /Users/user/Desktop/virt_env/virt0/lib/python3.4/site-packages/yolk-0.4.3-py3.4.egg
Processing dependencies for yolk
Finished processing dependencies for yolk
In /Users/user/Desktop/virt_env/virt0/bin, I have this:
activate pip3
activate.csh pip3.4
activate.fish python
activate_this.py python3
easy_install python3.4
easy_install-3.4 yolk
pip
which confirms that yolk was installed, but how can I update it also to yolk3k in virt0?
If I try to install yolk3k with the following command:
pip3 install --upgrade yolk3k
inside /Users/user/Desktop/virt_env/virt0/bin, it outputs:
Requirement already up-to-date: yolk3k in /Users/user/Desktop/virt_env/virt0/lib/python3.4/site-packages
but it still gives me the error I cited above.
Delete the virtualenv, recreate it with Python 3 as the interpreter and install all dependencies for Python 3 (such as yolk3k). The problem seems to come from the fact that you're going from a 2.x to a 3.x environment even though the virtualenv originally wasn't.
That's not the intended way of using a virtualenv - a virtualenv should be tied to one particular Python version (e.g., 2.7 or 3.4) with all dependencies installed for that version. So you should throw away the virtualenv and rebuild it entirely using 3.x dependencies. That should resolve any conflicting language issues.