Installing Tensorflow problem : pip doesn't upgraded - python

(tensorflow) C:\Users>python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Could not install packages due to an EnvironmentError: [WinError 5] 액세스가 거부되었습니다: 'c:\programdata\anaconda3\lib\site-packages\pip\_internal\basecommand.py'
Consider using the --user option or check the permissions.
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
I installed Anaconda3.7 and now I'm trying to install the tensorflow, but it seems the version of pip is problem.
So I typed 'python -m pip install --upgrade pip' command several times but it didn't work at all. Is there a way to install it?

I'm sorry. You messed Anaconda up with your pip install.
I had to reset my machine to factory settings, as reinstalling Anaconda gave me some conflict errors.
Once I reset my machine the command I typed was:
conda install tensorflow
you might also look into keras and theano.
Good luck buddy. You are not the only one to have done this. Anaconda is tricky like that.

Related

pip install ppaquette-gym-doom

I wrote pip install ppaquette-gym-doom
and it gives me a
error: legacy:install-failure
I tried pip install gensim pip install dlib --pre python -m pip install --upgrade pillow
python -m pip install --upgrade pip and python -m pip isntall --upgrade wheel
those codes didnt solved my problem
I am not familiar with gym-doom but based on some quick research it looks like you are getting this error because "ppaquette-gym-doom" is an obsolete version. From the github page "Note: This environment is not maintained anymore, and uses an old version of VizDoom."
It seems like the new version is simply "pip install gym-doom". This will also require something called Vizdoom.
Again this is based on quick research. I have never used these libraries.

Unable to install 1.x versions of Tensorflow on Ubuntu 20.04

The CPU I have doesn't have AVX instructions, so I'm forced to install versions of Tensorflow which are below 1.16. I'm using
pip3 install tensorflow==1.15
And I'm getting this error:
ERROR: Could not find a version that satisfies the requirement tensorflow==1.15 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4)
ERROR: No matching distribution found for tensorflow==1.15
I'm running Ubuntu 20.04 and I have updated all the packages. I've even downgraded python to 3.6.9 but still I'm unable to install older versions of Tensorflow
Try to create a virtual environment with "python 3.7"
python3.7 -m venv my_env
source my_env/bin/activate
then run the install command "pip install tensorflow==1.14"
This often happens when pip is not up to date.
If you're using a virtual environment, use
pip install --upgrade pip
pip install tensorflow==1.15
If you're using the system interpreter, use this (sudo may be required):
pip3 install --upgrade pip
pip3 install tensorflow==1.15
Hi you can try downloading tensor flow 2 using the link:-
illya13.github.io/RL/tutorial/2020/04/26/installing-tensorflow-on-ubuntu-20.html

What versions of python, anaconda and tensorflow work best to gether on windows 8.1?

taking different machine learning courses. i tried to install tensorflow after deleting my old anaconda/python (which took a while) and downloading 3.7, but then ran into version problems like this. downloading anaconda3 5.20 now.
so is there a preferred combination of recent python, anaconda, and tensorflow versions that play well together on windows 8.1.
edit: looks like anaconda can deal with different versions of python.
edit2: trying:
conda create -n tensorflow pip python=3.5
activate tensorflow
pip install --ignore-installed --upgrade tensorflow
gets tensorflow installed and working but issues a warning:
You are using pip version 10.0.1, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
(tensorflow) C:\Users\ray>python -m pip install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3a
f41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
tensorflow 1.10.0 has requirement setuptools<=39.1.0, but you'll have setuptools
40.0.0 which is incompatible.
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
so now i have a red warning.

Could not find a version that satisfies the requirement for all the packages

I have recently configured python3 for other application and running on the same machine where python 2.7 was running.. I see python3 applications are working fine with command
python -m pip install package-name and
python3 manage.py runserver command
But I am facing trouble with my existing application and new application with following issue while installing package
You are using pip version 7.1.0, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting django-allauth==0.27.0
Could not find a version that satisfies the requirement django-allauth==0.27.0 (from versions: )
No matching distribution found for django-allauth==0.27.0
This is the command I used,
pip install django-allauth==0.27.0
Anybody know how to resolve it?
This is the command output,
pip 7.1.0 from /Users/overflow/.virtualenvs/ion/lib/python2.7/site-packages (python 2.7)
Try installing another version:
pip install django-allauth
Make sure you're using the version of pip that corresponds to the version of Python you are using:
pip --version
Alternatively, be explicit in which version you use:
python3 -m pip install django-allauth
or
python2 -m pip install django-allauth
try
pip install --upgrade pip
first
and then
pip install django-allauth==0.27.0
I'm little confused with you'r version problem, but you can choose you'r python vertion using py-2.x or py -3.x. For example:
py -3.6 -m pip install djangp-allauth==0.27.0
py -2.7 -m pip install djangp-allauth==0.27.0
I fixed it by uninstalling PIP in each project and then reinstalling it.. Might not be a good solutions, but this works.

Trouble with installing pip 8.1.1 from 7.1.2

I'm having an issue with upgrading pip from 7.1.2 to 8.1.1. At first I downloaded Python 3.4 and installed pip from there but then noticed Python 3.5 was there so I downloaded that. When trying to use pip to install selenium it says You are using pip version 7.1.2 however 8.1.1 is available. I do "pip install --upgrade pip" then get an error. See attached screenshot.What do I do? Btw I'm on windows 8.1.enter image description here
Ok. It's working if I run cmd as an admin then do
python -m pip install --upgrade pip
In Mac, I ran:
sudo python -m pip install --upgrade pip
Then, it worked.
Did you try python -m pip install --upgrade pip? if pip is being used, it cannot install itself.
This is a common question that requires few germane steps to pre-installing other modules in Python.
Depending on the version of your Python (Either the 2.X series or the 3.X series), and the operation system (Window, Ubuntu, etc ), you will need to do the following;
Open CMD (Short-Cut: Control+R button on the keyboard)
Make sure the current directory is the administrator on the hard-drive of the system and your internet connection is available.
i.e C:\Users\System_Name PC
Type in the command:
Pip install --upgrade pip
i.e C:\Users\System_Name PC > pip install --upgrade pip
and hit ENTER key to activate:
It will uninstall the previous version and install the latest version
Restart the system and continue the installation of each python module
e.g Pip install dateutil
Pip install numpy
Pip install matplotlib
Peradventure you wish to specify the version of the python module dependencies you want to install;
Pip install Django==1.90
It will install the specific version: otherwise if not specified, the latest version of the target module would be installed.

Categories