Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Windows7 python3 and python2 environment installation

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Windows environment deployment:

Download whl Library Files in https://www.lfd.uci.edu/~gohlke/pythonlibs/ Windows Environment

To install the window development machine in a mixed environment of python3 and python2, first install python 3.4.4 (this version comes with pip), and add the path environment variable C:\ Python34\; C:\ Python34\ Scripts to configure the pip source as douban:

Create the pip directory and pip.ini file in C:\ Users\ John\ AppData\ Roaming

[global]

Timeout = 6000

Index-url = http://pypi.douban.com/simple

Trusted-host = pypi.douban.com installation python 2.7. be careful not to add environment variables pip installation virtualenv

Python-V # check the python version and confirm that it is python3

Pip install virtualenv # confirm that it is the pip source of douban

Create a directory in I:\ python

Cd I:\ python

Virtualenv-p C:\ Python27\ python.exe venv2 # build python2 environment

Virtualenv-p C:\ Python34\ python.exe venv3 # build the python3 environment and then configure the python interpreter in pycharm

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report