简体   繁体   English

在本地目录中的远程服务器上安装virtualenv

[英]Installing virtualenv on a remote server in a local directory

I have added the local directory to the path, untarred virtualenv 1.9.1, run the setup script with --prefix=$HOME/.local, but when I try to create a virtual environment I get an import error: 我已将本地目录添加到路径中,即未释放的virtualenv 1.9.1,使用--prefix = $ HOME / .local运行安装脚本,但是当我尝试创建虚拟环境时,出现导入错误:

Traceback (most recent call last):
  File "./virtualenv", line 2, in ?
    import virtualenv
ImportError: No module named virtualenv

any help would be greatly appreciated. 任何帮助将不胜感激。

Oh, and if it helps it is a Red Hat Enterprise Linux Server release 5 哦,如果有帮助,那么它应该是Red Hat Enterprise Linux Server版本5

只需通过rpm安装virtualenv。

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

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