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
Related
I had used tensorflow before this time.Now,tensorflow is installed but it cannot be imported.Moreover,it cannot be installed again.What happened in tensorflow?I searched many solutions for this error but I cannot find.When tensorflow is installed with pip,this error appears.
Unable to create process using 'C:\Users\hp\Anaconda3\envs\tf-gpu\python.exe C:\Users\hp\Anaconda3\envs\tf-gpu\Scripts\pip-script.py install tensorfow'
And when it is installed with anaconda,it can be installed,but cannot be imported,"ModuleNotFoundError: No module named 'tensorflow'".How can I solve this trouble to reuse tensorflow without reinstalling anaconda ,please help me.Thanks a lot in advance!!
You can uninstall and reinstall the pip:
python -m pip uninstall pip
python -m pip install --upgrade pip
or update pip:
python -m pip install -upgrade pip
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 have created a conda environment where I am installing all the stuff I need.
I already had installed the pandas library, but I need to upgrade it to the latest version.
However, when I try pip3 install --upgrade pandas I get the following error:
Found existing installation: pandas 0.15.2
Cannot uninstall 'pandas'. 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.
I have tried sudo apt-get remove pandas, but this get me a message saying that the pandas package cannot be found.
In case is relevant, I am in Ubuntu 16.04 and using python 3.6.3
Though I'm unable to reproduce the error, you can try:
1) Reduce version
pip install --upgrade --force-reinstall pip==18.0
Try to re-install package
pip install xxx --disable-pip-version-check
At last, recover the latest version for pip
pip install --upgrade pip
2) pip install -I==18.0 -r requirements.txt
3) Try removing manually from 'site-packages'
These solutions were found here
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
My setup is as follows:
Python version: 3.6.0
Numpy version: 1.13.0
Scipy version: 0.19.0
Gensim version: 2.1.0
GCC Compiler version: 5.3.0
System: Windows 7, 64bit
I get the following error with the setup above
import gensim
>>>Slow version of gensim.models.doc2vec is being used
This makes the run time far too slow when training models on gensim. I feel there is some problem with the package versions I am using or how I installed them because: I had to install numpy using pip; I had to install scipy using conda; and I had to install gensim using pip again. The reason for this setup, is because if I try to install scipy using pip, I get the error
>>>ImportError: DLL load failed: The specified procedure could not be found.
So I had to install scipy via conda. Also, if I try to install gensim using
conda install gensim
or
conda update gensim
it only installs version 1 - I have tried conda install -c anaconda gensim=2.1.0 but I get the error
PackageNotFoundError: Package missing in current win-64 channels:
- gensim 2.1.0*
Numpy and Scipy work fine independently when I import them into a script - that is, they import fine and I can use all their functionality. However, when they are being used by Gensim, clearly there is a problem and I don't know why.
Would anyone be able to advise possible fixes? Ideally I would like to keep all the latest versions of these packages if possible. Thank you in advance
NOTE: Gensim works fine with the "fast" version when I have Gensim version 1 installed and with the same versions of the dependencies above!
I also had this problem (I'm running ubuntu).
I found out that if i'm using directly the version from github, the problem is fixed.
So there are 2 solutions: (first uninstall gensim using pip uninstall gensim)
download and unzip the gensim zip file from gensim's github page, then CD to the folder of the zip content and run the command
python setup.py install
run this command pip install git+https://github.com/RaRe-Technologies/gensim#master#egg=gensim
I used the second and now I don't get the warnings
The problem is to do with the some underlying packages not being up to date. Here I found the answer which work for me, which is in short:
Uninstall Gensim
sudo pip3 uninstall gensim
Install python3-dev build-essential
sudo apt-get install python3-dev build-essential
Re-Install Gensim
sudo pip3 install --upgrade gensim
Notes:
Instructions above are for systems where pip and apt-get are used to manage packages
pip3 is the python3 version of pip