Windows Python virtualenv use, mirror source settings, batch install, install Scipy,numpy

Source: Internet
Author: User
Tags virtualenv

Mirror Source Settings

Set up the Pip folder under C:\Users\Administrator\, then create a pip.ini inside

The contents are:

[Global]
Index-url = Https://pypi.tuna.tsinghua.edu.cn/simple

VIRTUALENV Installation

Pip Install Virtualenv

Well, now, if you need to do numerical research, you need to install

Python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

So a series of packages, and you want to install in a separate environment.

Create a new directory. (Anywhere)

mkdir D:\Python

And then

Virtualenv Numenv (Here's the name as you write)

Then you will find that a numenv folder was generated

And then

Scripts\activate activation

Create a new TXT file and write the package you need to install.

(only need to write NumPy scipy these names, python-can be removed)

Pip Install-r requirements.txt

Then it will be installed automatically.

Finally, if you want to use this new environment in Pycharm.

The path to the Python interpreter needs to be changed.

In the Settings-project: Python--python interpreter inside.

It is important to note that when installing scipy, it is very likely that it will fail

You can refer to the link: https://www.zhihu.com/question/30188492?sort=created

Also, say something about using PIP to install the local file method

Pip install numpy--find-links= path name

Windows Python virtualenv use, mirror source settings, batch install, install Scipy,numpy

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.