Install pymc on 64-bit windows 7

Source: Internet
Author: User

Again: open-source software is really troublesome.

According to some materials, pymc has a good support for the Markov graph model. The basic probability estimation can be achieved in general, so we are excited to prepare for installation.

According to my habits, I prefer pip to maintain the package. I had to install the package one day later.
The following are Installation notes. If you want to install the tool at the fastest speed and don't have to worry about it, please go to the end.

The first thing that comes to mind is:

Pip install pymc

The returned error is: Python error: Unable to find vcvarsall. bat.

Easy_install pymc

Error returned: error: Setup script exited with error: Unable to find vcvarsall. bat

It seems that a Microsoft compiler is not working properly.

The solution for searching the Internet is:

Method 1. Install visual studio

Method 2, similar to this: http://outofmemory.cn/code-snippet/2917/python-easy-install-occurrence-Unable-to-find-vcvarsall-bat-error-process-method

After checking some information on the Internet, the correct solution is to install mingw, which is an open-source project on sourceforge. The compiler provides many types of compilers.

First, download the mingw installation package,

Then install mingw

Assuming that the mingw installation directory is c:/mingw, you need to add c:/mingw/bin to the Path system variable.
Download the easy_install file, which is usually tar.gz. Download and decompress the file, run cmd to open the command window, switch to the directory where the extracted setup. py is located, and execute the following command.
Setup. py install build -- compiler = mingw32
This will solve the problem of easy_install "Unable to find vcvarsall. bat.
I don't want to install a huge visual studio for a pymc, so I decided to use mingw, download and install, configure, and then use setup. py install build -- compiler = mingw32 installation, it seems to be successful, ..................
When importing pymc, the returned error is:
....................................
A bunch of errors.
Although the import operation is successful, it cannot be run.
I also have no courage to find out why I cannot run it.

Helpless, uninstall.

Pip uninstall pymc to continue searching.

Subsequently, pymcguan recommended anacondain. If you are lucky, download anacon%2.1.0-windows-x86_64.zip and install it. Then switch to/Anaconda 2.1.0 (64-bit)/Scripts to run
Conda install-c https://conda.binstar.org/pymc pymc
View results !!!!!! You cannot find the pymc package.
Unwilling to renew.
Tian la ....................................
Then, download anacon00002.1.0-windows-x86.zip and switch to/Anaconda 2.1.0 (32-bit)/Scripts to run the installation again:
Conda install-c https://conda.binstar.org/pymc pymc successful installation is complete, then execute try again
Import pymc
Pymc. test ()

Finally, no error is returned.

Oh, it's so tough.

Next, in pycharm, change the interpreter and try again.
----------------------------------------------------------------------------
Others: taking this opportunity, I learned about Anaconda and found that although this item is very large, it is very often recommended for people like me who do not like it.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.