简体   繁体   English

在Windows中使用特定的解释器设置virtualenv

[英]Setting up virtualenv in windows with specific interpreter

I have a number of django projects organized with the following directory structure using win7 (I'm using GIT_BASH/mingw for my command line) : 我有许多使用win7按照以下目录结构组织的django项目(我在命令行中使用GIT_BASH / mingw):

envs--s1--project1
        --project2        
python275--

I want to create a virtualenv inside s1 using python275 as the interpreter so the directory structure looks like: 我想在s1内使用python275作为解释器创建一个virtualenv,因此目录结构如下所示:

envs--s1--project1
        --project2
        --Include
        --Library
        --Scripts
python275--

I tried: 我试过了:

/c/envs/s1
$ pip install virtualenv
sh: pip: command not found

How can I set up this up? 我该如何设置?

It seems like you don't have pip installed on your system. 看来您的系统上没有安装pip。 If you have installed using the get-pip.py installer you need to make sure the Scripts directory of you python installation is included in your PATH environment variable. 如果使用get-pip.py安装程序进行安装,则需要确保PATH环境变量中包含python安装的Scripts目录。

For more detail regarding installing pip check out the doc 有关安装pip的更多详细信息,请查阅文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM