How does the Python module install and confirm that the module is installed?

Source: Internet
Author: User

See if you have a good installation , the simplest way in the console can be again:

C:\Users\sony>pythonPython 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> import numpy>>> import scipy>>> import matplotlib>>> import wrong_packageTraceback (most recent call last):  File "<stdin>", line 1, in <module>ImportError: No module named wrong_package

If the import error, the general is not installed, the first three are installed successfully.

If installed
At the same time, many of the package does not fit under Windows. Recommended use of Easy_install
Or you can download the Python package to the local, the command line into the folder (with the setup.py path), enter:
Python setup.py Install

***************************************************************************************************

I am also a win7 bit environment, simply say to save yourself the trouble of looking for (experience).
(for the avoidance of ambiguity the following some sentences end of wood punctuation.) )

Installation package:
First, when you install Python, remember to install both PIP and add path. If this option is missing, you can install the change again ...
-and then all modules can be installed with Pip, under CMD direct pip install Whatevermodule
--No network or cannot link the network when you can manually download the module to a path, and then pip install Path\whatevermodule

To view installed packages:
CMD under PIP freeze

It is recommended to install Vscompilertoolsforpython, otherwise the modules that need to be compiled cannot be installed.

References

http://www.zhihu.com/question/21695470

How does the Python module install and confirm that the module is installed?

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.