I've tried installing it on a separate env and installing arviz separately. The import pymc3 as pm will not work.
AttributeError: module 'arviz' has no attribute 'geweke'
It looks like the issue is related to the version of python (3.6) you are using and a dependant library pyMC use called arviz.
Make sure you uninstall the old version and follow the following steps to reinstall everything.
Uninstall using :
pip uninstall Theano Theano-PyMC PyMC3
Make sure you remove theano left overs by running :
sudo rm -fr the_python_path_u_are_using/lib/python3.6/site-packages/theano
And then install arviz with :
pip install arviz==0.10.0
And finally, install pymc3 again.
pip install pymc3
Try again and it will work.
It depends on your environment
For Anaconda:
Uninstall “arviz”
Use:
conda uninstall arviz
Now, install the latest version of “arviz”
For today, it is version 0.11.1
Use:
conda install arviz==0.11.1
For Non Anaconda environments:
Uninstall “arviz”
Use:
pip uninstall arviz
Now, install the latest version of “arviz”
Use:
pip install arviz==0.11.1
My environment: Ubuntu 18.04, Python 3.7.10
I have similar problem, after read this error at https://discourse.pymc.io/t/attributeerror-module-arviz-has-no-attribute-geweke/6818/4. The following commands solve the problem of AttributeError: module 'arviz' has no attribute 'geweke'
pip uninstall arviz
pip install arviz==0.11.0
pip install pymc3==3.10.0
While executing iNltk library, I am getting an error. I have latest versions of pytorch and torchvision.
'LSTM' object has no attribute '_flat_weights_names'
After re-searching on some blogs some people suggested to downgrade the version to 1.2 So i tried below installation from https://pytorch.org/get-started/previous-versions/
pip install torch==1.2.0+cu92 torchvision==0.4.0+cu92 -f https://download.pytorch.org/whl/torch_stable.html
However, getting errors
ERROR: Could not find a version that satisfies the requirement torch==1.2.0+cpu
ERROR: No matching distribution found for torch==1.2.0+cpu
Also, 1.3.1 version is missing.
Anybody has any idea about how to downgrade to 1.3.1 or 1.2.0?
Thanks in advance
PD
I tried using pip, but that did not work for me. conda fixed the issue.
Setup a conda environment first and activate it. Install iNLTK using pip in conda as follows:
pip install inltk
Remove the version of PyTorch installed as a dependency for iNLTK.
pip uninstall torch
Install the desired version of PyTorch.
conda install pytorch==1.3.0 -c pytorch
Refer: Previous PyTorch Versions
In google colaboratory,I got the same error while executing iNltk library.
In Inltk Installation (https://inltk.readthedocs.io/en/latest/api_docs.html)
they have provided as:
!pip install torch==1.3.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
!pip install inltk
but the actual order of implementation is:
!pip install inltk
!pip install torch==1.3.1+cpu -f https://download.pytorch.org/whl/torch_stable.html.
So by reversing order of execution of installation,solved error as the torch version gets corrected by following this order.
Whenever I run:
pip install fastai
I get the error
"Command "python setup.py egg_info" failed with error code 1 in C:\Users\seja9890\AppData\Local\Temp\pip-install-_cw7ve61\torch\".
Can someone please guide me where I might be going wrong?
Ps.: I have tried updating setuptools and it doesn't help in my case.
Fastai doesn't work with Python 2 so make sure you installed pip3 (sudo apt install python3-pip on Ubuntu).
Make sure Python3 is at least 3.6 this may change since Fastai may need 3.7. soon.
and then:
pip3 install git+https://github.com/fastai/fastai.git
or use pip3 install fastai, or in some cases you may need:
pip3 install --no-deps fastai
Note: At the moment I am writing this: PyTorch v1 and Python 3.6 are the minimal version requirements.
For official website, you should install it with conda.
anaconda
fast.ai
To install
# Prerequisites
Anaconda, manages Python environment and dependencies
# Normal installation
Download project: git clone https://github.com/fastai/fastai.git
Move into root folder: cd fastai
Set up Python environment: conda env update
Activate Python environment: conda activate fastai
If this fails, use instead: source activate fastai
# Install as pip package (not recommend)
You can also install this library in the local environment using pip
pip install fastai
However this is not currently the recommended approach, since the library is being updated much more frequently than the pip release, fewer people are using and testing the pip version, and pip needs to compile many libraries from scratch (which can be slow).
An alternative is to use the latest Github version with pip
pip install git+https://github.com/fastai/fastai.git
I installed the latest version of Python (3.6.4 64-bit) and the latest version of PyCharm (2017.3.3 64-bit). Then I installed some modules in PyCharm (Numpy, Pandas, etc), but when I tried installing Tensorflow it didn't install, and I got the error message:
Could not find a version that satisfies the requirement TensorFlow (from versions: )
No matching distribution found for TensorFlow.
Then I tried installing TensorFlow from the command prompt and I got the same error message.
I did however successfully install tflearn.
I also installed Python 2.7, but I got the same error message again. I googled the error and tried some of the things which were suggested to other people, but nothing worked (this included installing Flask).
How can I install Tensorflow? Thanks.
The latest requirements for running TensorFlow are documented in the installation documentation.
TensorFlow only supports 64-bit Python
TensorFlow only supports certain versions of Python (for example, Python 3.6 is not supported)
So, if you're using an out-of-range version of Python (older or newer) or a 32-bit version, then you'll need to use a different version.
I installed it successfully by pip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl
There are a few important rules to install Tensorflow:
You have to install Python x64. It doesn't work with x86/32b and it gives the same error as yours.
Python versions later than 3.8 and Python 3.8 requires TensorFlow 2.2 or later. Check for supported Python versions.
For example, for TensorFlow 2.9, you can install Python3.8.6-64bit and it works like a charm. Check the latest information on the website.
if you are using anaconda, python 3.7 is installed by default, so you have to downgrade it to 3.6:
conda install python=3.6
then:
pip install tensorflow
it worked for me in Ubuntu.
I am giving it for Windows
If you are using python-3
Upgrade pip to the latest version using py -m pip install --upgrade pip
Install package using py -m pip install <package-name>
If you are using python-2
Upgrade pip to the latest version using py -2 -m pip install --upgrade pip
Install package using py -2 -m pip install <package-name>
It worked for me
Tensorflow 2.2.0 supports Python3.8
First, make sure to install Python 3.8 64bit. For some reason, the official site defaults to 32bit. Verify this using python -VV (two capital V, not W). Then continue as usual:
python -m pip install --upgrade pip
python -m pip install wheel # not necessary
python -m pip install tensorflow
As usual, make sure you have CUDA 10.1 and CuDNN installed.
Tensorflow isn't available for python 3.8 (as of Dec 4th 2019) according to their documentation page. You will have to downgrade to python 3.7.
I am using python 3.6.8, on ubunu 18.04, for me the solution was to just upgrade pip
pip install --upgrade pip
pip install tensorflow==2.1.0
Uninstalling Python and then reinstalling solved my issue and I was able to successfully install TensorFlow.
Python version is not supported
Uninstall python
https://www.python.org/downloads/release/python-362/
You should check and use the exact version in install page.
https://www.tensorflow.org/install/install_windows
python 3.6.2 or python 3.5.2 solved this issue for me
So here's the message that I got on a M1 Pro while I was executing
python -m pip install tensorflow-macos
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
I then re-installed python from the official source:
https://www.python.org/downloads/macos/
(Yes, as stupid as it seems.)
I then followed the Apple tutorial for Monterey:
https://developer.apple.com/metal/tensorflow-plugin/
Everything was solved by then.
(as of Jan 1st, 2021)
Any over version 3.9.x there is no support for TensorFlow 2. If you are installing packages via pip with 3.9, you simply get a "package doesn't exist" message. After reverting to the latest 3.8.x. Thought I would drop this here, I will update when 3.9.x is working with Tensorflow 2.x
Apple Silicon (M1+ Chip)
If you are using a Mac with an M1 chip or higher, you need to install Tensorflow metal plugin for compatability with your architecture.
Simple installation instructions for Tensor Flow are found on Apple's website: https://developer.apple.com/metal/tensorflow-plugin
Looks like the problem is with Python 3.8. Use Python 3.7 instead. Steps I took to solve this.
Created a python 3.7 environment with conda
List item Installed rasa using pip install rasa within the environment.
Worked for me.
Running this before the tensorflow installation solved it for me:
pip install "pip>=19"
As the tensorflow's system requirements states:
pip 19.0 or later
For version TensorFlow 2.2:
Make sure you have python 3.8
try:
python --version
or
python3 --version
or
py --version
Upgrade the pip of the python which has version 3.8
try:
python3 -m pip install --upgrade pip
or
python -m pip install --upgrade pip
or
py -m pip install --upgrade pip
Install TensorFlow:
try:
python3 -m pip install TensorFlow
or python -m pip install TensorFlow
or py -m pip install TensorFlow
Make sure to run the file with the correct python:
try:
python3 file.py
or python file.py
or py file.py
1.Go to https://www.tensorflow.org/install/pip website and look if the version you are using support the Tensorflow. some latest version does not support Tesnsorflow. until Tensorflow releases its latest version for that Python version.
you must have 64 bit python installed
have latest version of pip installed
pip install --upgrade pip
using pip install tensorflow --user did it for me
I had this problem on my macOS (with M1 Pro) even with the latest 64-bit Python and the latest pip installed. This is how I've solved it. Try to run:
pip install tensorflow-macos
If you will get the error ending like this (like I did)...
...
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
...then simply run:
pip install --default-timeout=100 tensorflow-macos
Tensorflow seems to need special versions of tools and libs.
Pip only takes care of python version.
To handle this in a professional way (means it save tremendos time for me and others)
you have to set a special environment for each software like this.
An advanced tool for this is conda.
I installed Tensorflow with this commands:
sudo apt install python3
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
sudo apt install python3-pip
sudo apt-get install curl
curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
yes
source ~/.bashrc
installs its own phyton etc
nano .bashrc
maybe insert here your proxies etc.
conda create --name your_name python=3
conda activate your_name
conda install -c conda-forge tensorflow
check everything went well
python -c "import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))"
PS: some commands that may be helpful
conda search tensorflow
https://www.tensorflow.org/install/pip
uses virtualenv. Conda is more capable. Miniconda ist sufficient; the full conda
is not necessary
use python version 3.6 or 3.7 but the important thing is you should install the python version of 64-bit.
In case you are using Docker, make sure you have
FROM python:x.y.z
instead of
FROM python:x.y.z-alpine.
This issue also happens with other libraries such as matplotlib(which doesn't support Python > 3.9 for some functions) let's just use COLAB.
Slightly different issue for me but I will still post an answer here. tensorflow package is working, but not tflite-runtime.
pip install --extra-index-url https://google-coral.github.io/py-repo/ tflite-runtime==2.5.0
I solved the same problem with python 3.7 by installing one by one all the packages required
Here are the steps:
Install the package
See the error message:
couldn't find a version that satisfies the requirement -- the name of the module required
Install the module required.
Very often, installation of the required module requires the installation of another module, and another module - a couple of the others and so on.
This way I installed more than 30 packages and it helped. Now I have tensorflow of the latest version in Python 3.7 and didn't have to downgrade the kernel.
First, I downloaded the numpy+nlk whl file here and did
python3 -m pip install numpy‑1.11.3+mkl‑cp36‑none-any.whl
I renamed thanks to this tip: filename.whl is not supported wheel on this platform
But when I do
python3 -m pip install sklearn
I get Original error was: cannot import name 'multiarray'
I've tried unistalling and reinstalling numpy, but I have no idea how to fix this.
I just uploaded the windows wheels for scikit-learn 0.18.2 and Python 3.6 to PyPi: https://pypi.python.org/pypi/scikit-learn/0.18.2 Can you try again and give the full traceback if that still does not work?
If you have installed pip then follow the given steps:
upgrade pip to the latest version
install
pip install numpy scipy scikit-learn
pip install sklearn