Comments (11)
I fixed it by setting the LANG
environment variable(s):
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=en_US.UTF-8
But it might be nice to get it working without that...
from pymc2.
when I install pymc in windows platform use “pip install pymc", it will report this error:
File "c:\Python34\lib\site-packages\numpy\f2py\crackfortran.py", line 336, in readfortrancode
l=fin.readline()
File "c:\Python34\lib\fileinput.py", line 363, in readline
self._buffer = self._file.readlines(self._bufsize)
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa1 in position 6844: illegal multibyte sequence
from pymc2.
Happens for pymc==2.3.2 thru pymc==2.3.6, for Python 3.4 and 3.3. Python 2.7 installs ok.
from pymc2.
Can you post the code that generates this error? I'd like to try to replicate it here.
from pymc2.
Just pip install pymc
(in a Python 3.3/3.4 virtualenv, or use pip-3.4
, or whatever is available in your env to pip install for a particular python version...)
from pymc2.
I can't replicate this with Anaconda Python 3.3 in a virtualenv:
Collecting pymc
Downloading pymc-2.3.6.tar.gz (348kB)
100% |████████████████████████████████| 352kB 414kB/s
Building wheels for collected packages: pymc
Running setup.py bdist_wheel for pymc
Stored in directory: /Users/fonnescj/Library/Caches/pip/wheels/b4/12/14/094b6184fc97f474640caba446f451335daaf32c5b547e1c87
Successfully built pymc
Installing collected packages: pymc
Successfully installed pymc-2.3.6
from pymc2.
I'm on Ubuntu. I think it's fairly consistent, not something to do with my setup. I can repro it in a minimal dockerfile:
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get install -y python3-dev python3-pip
RUN apt-get install -y python3-numpy python3-matplotlib
RUN pip3 install pymc
from pymc2.
Here's the full output from the minimal repro run: http://pastebin.com/9SEww4CT
from pymc2.
We do have a .cfg file for Debian installs. Would it work to put these there?
from pymc2.
Ran into the same issue myself on a Mac (10.11) using Python 3.5. hjwp's environment variable fix worked for me to successfully install. pymc-devs/pymc#62 (comment)
from pymc2.
#62 (comment) did't work for me. I got the same error:
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa1 in position 6844: illegal multibyte sequence
from pymc2.
Related Issues (20)
- Inference with Theano shared variable having missing data HOT 2
- Can't build pymc HOT 6
- pymc.test() error HOT 4
- Can't install PyMC neither through conda nor pip on Windows 7 HOT 2
- Sampling does not start or is very slow on mixture model tutorial HOT 2
- async and await are reserved keywords in python 3.7 HOT 3
- Zstride=1. / spatial_scale, eroDivisionError: float division by zero
- pymc fails to find openblas from numpy HOT 4
- Erroneous documentation for Normal HOT 1
- sample_posterior_predictive produces wrongly shaped output HOT 1
- Error messages during pymc.test()
- Successfully installed but can't import HOT 1
- PYMC 2 warning HOT 8
- Python packages installation error HOT 1
- Sample function (MCMC) running AGONIZINGLY slowly HOT 2
- Truncated pareto
- Why can't PyMC be installed on MAC? HOT 5
- Anaconda installing pymc 2.3.7 not 2.3.8 HOT 3
- Install error in Pymc: module 'pymc' has no attribute 'stochastic_from_dist' HOT 9
- BUG: AttributeError: module 'pymc' has no attribute 'diagnostics' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymc2.