Theanos Installation error linux compilation error - python

So I was trying to setup theano on my Linux14.04 machine .
Steps done so far :
Installed miniconda
installed dependencies - conda install numpy scipy mkl <nose> <sphinx> <pydot-ng>
Did not install the GPU drivers .... do not need the higher computation as of now.
Tried installing theano with : <sudo> pip install <--user> Theano[test, doc]
It exited with the following error :
Theano terminal error gist
Been trying to solve the same, max online references are related to upgrading pip :
Ran this :
pip install --upgrade pip
Requirement already up-to-date: pip in ./miniconda2/lib/python2.7/site-packages

Package error :
Solved by installing :
sudo apt-get install python-dev
Gave error for installing dependencies Theano[test, doc] :
Clean install with only :
sudo pip install Theano

Related

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

Installing Tensorflow problem : pip doesn't upgraded

(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.

Python 3.5 virtualenv : pip3 installing tensorflow fails

I am running Mac OS 10.5 (Yosemite) and I just setup a virtualenv with python 3.5 to play a little bit with tensorflow. The virtualenv is setup correctly. However, I cannot install tensorflow. I always get the following error messages:
(tensorflow) Tom#MBP:~/tensorflow$ pip3 install --upgrade tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
or this error:
(tensorflow) Tom#MBP:~/tensorflow$ pip3 install --upgrade \
> https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.5.0-py2-none-any.whl
tensorflow-1.5.0-py2-none-any.whl is not a supported wheel on this platform.
I actually do not understand what is happening here.
Any help is appreciated. Thanks
Try upgrading pip to use latest version and see if it helps:
pip3 install --upgrade pip

Issue while installing Tensorflow in Windows 10 (python 3.6.2)

While I am executing the following command it errors out:
<><><><><><><><><><><><><><><><><><><><><>
(tensorflow36) C:\Users\usr1>conda install tensorflow
Fetching package metadata .................
PackageNotFoundError: Packages missing in current channels:
- tensorflow
We have searched for the packages in the following channels:
http://conda.anaconda.org/gurobi/win-32
http://conda.anaconda.org/gurobi/noarch
https://conda.anaconda.org/anaconda-fusion/win-32
https://conda.anaconda.org/anaconda-fusion/noarch
https://repo.continuum.io/pkgs/main/win-32
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-32
What am I missing??
As mentioned in the docs (https://www.tensorflow.org/install/install_windows):
within Anaconda, we recommend installing TensorFlow with the pip
install command, not with the conda install command.
CPU-only version:
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl
GPU version:
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.1-cp35-cp35m-win_amd64.whl
The --upgrade option of pip will make sure the newest available version of tensorflow gets installed. For more info go to Pip installation on Windows in https://www.tensorflow.org/versions/r0.12/get_started/os_setup

What is the difference between these 2 ways of installing Theano on Windows?

I want to install Theano on my windows 8.1 x64 machine. I already have anaconda (latest 64 bit) with python 2.7.x version.
I have two options of installing:
# Option 1 : from pip
pip install Theano
And
# Option 2 : Bleeding edge from git
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
Can someone let me know the major differences between two and which one is suggested to install?
I guess using below command, you might end up installing an older version of Theano i.e. all missing updates etc.
pip install Theano
While using command for bleeding edge version installation, you might get an updated (latest developer) version of Theano.
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
this line is for installing theano:
pip install Theano
the other command is for updating already installed theano:
pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

Categories