Questions tagged «virtualenv»


3
使用pip在virtualenv中安装scrapy时出错
pip install scrapy Downloading/unpacking scrapy Downloading Scrapy-0.24.2-py2-none-any.whl (502kB): 502kB downloaded Downloading/unpacking pyOpenSSL (from scrapy) Downloading pyOpenSSL-0.14.tar.gz (128kB): 128kB downloaded Running setup.py (path:/home/elie/.virtualenvs/stat/build/pyOpenSSL/setup.py) egg_info for package pyOpenSSL warning: no previously-included files matching '*.pyc' found anywhere in distribution no previously-included directories found matching 'doc/_build' Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 …

2
pyvenv vs venv vs python-virtualenv vs virtualenv和python 3
malikarumi@Tetouan2:~$ pip install virtualenv Collecting virtualenv Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB) 100% |################################| 1.8MB 330kB/s malikarumi@Tetouan2:~$ pip freeze (a lot of stuff, but not virtualenv) malikarumi@Tetouan2:~$ virtualenv testvenv1 The program 'virtualenv' is currently not installed. You can install it by typing: sudo apt-get install python-virtualenv 这里发生了什么?是python-virtualenv == pyvenv吗?还不是很坏吗?原始的virtualenv仍然可以与python一起使用吗?如果venv(名称变体太多!!)是标准库https://docs.python.org/3/library/venv.html的一部分,为什么要告诉我安装它? 当我确实尝试安装它时,我得到了: malikarumi@Tetouan2:~$ sudo apt-get …
13 apt  python  pip  virtualenv 

4
运行初始化挂钩的Python virtualenvwrapper问题
在16.04的全新安装中,我尝试通过遵循Gerhard Burger的出色回答来安装virtualenvwrapper 。 配置完后.bashrc,只要打开终端显示 bash: /usr/local/bin/python2.7: No such file or directory virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenvwrapper has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python2.7 and that PATH is set properly. 脚本位置是 $ sudo find / -name virtualenvwrapper.sh [sudo] …

3
如何在virtualenv中安装Pygame?
在install中python-virtualenv,因为这个问题说我应该使用virtualenv安装pygame。但是,我不确定该如何完成。 我做了什么(遵循这些说明): virtualenv --no-site-packages --distribute -p /usr/bin/python3.3 ~/.virtualenvs/pywork3 --no-pip 然后我不知道去哪里。 如何安装要在virtualenv中使用的pygame? 编辑:我按照GuySoft的说明进行操作,并且一切安装都很棒。但是,当我import pygame在python3中尝试时,出现以下错误: >>> import pygame Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/alden/.virtualenvs/pywork3/lib/python3.3/site-packages/pygame/__init__.py", line 95, in <module> from pygame.base import * ImportError: /home/alden/.virtualenvs/pywork3/lib/python3.3/site-packages/pygame/base.cpython-33m.so: undefined symbol: PyCObject_Check
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.