Ubuntu-12.04μμ μ€ν μ€μ λλ€.
ν --λ²μ
/usr/local/lib/python2.7/dist-packagesμ pip 8.0.2(νμ΄μ¬ 2.7)κ°μ νκ²½ --λ²μ
14.0.6
virtualenvκ° νκ²½μ μμ±νμ§ λͺ»ν©λλ€. pip 8.0.2κ° μ€μΉλ λ pip 7.0.1μ μ¬μ©ν΄μΌ νλ€κ³ μκ°νλ μ΄μ λ₯Ό λͺ¨λ₯΄κ² μ΅λλ€.
pip(μ: apt ν¨ν€μ§ μ κ±°, ez_setupμ ν΅ν΄ μ€μΉ), virtualenvλ₯Ό λ€μ μ€μΉνλ €κ³ μλνμ§λ§ μ무 κ²λ μλνμ§ μμμ΅λλ€.
λ€λ₯Έ μ»΄ν¨ν°μμλ 14.0.6μ΄ μ μλνμ§λ§ μ΄κ²μ΄ μ λ₯Ό νλ€κ² ν©λλ€.
λμμ μ£Όμλ©΄ κ°μ¬νκ² μ΅λλ€!
λλ λ‘κ·Έλ₯Ό λλ΄νκ³ μμΌλ©° pip νκ²½μ λ°λ₯΄κ³ μμ΅λλ€.
ν΅λ무
virtualenv --system-site-packages /tmp/venv
New python executable in /tmp/venv/bin/python
Installing setuptools, pip, wheel...
Complete output from command /tmp/venv/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel:
You are using pip version 7.0.1, however version 8.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting setuptools
/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/commands/install.py", line 291, in run
wb.build(autobuilding=True)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/wheel.py", line 704, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/req/req_set.py", line 317, in prepare_files
functools.partial(self._prepare_file, finder))
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/req/req_set.py", line 304, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/req/req_set.py", line 439, in _prepare_file
req_to_install.populate_link(finder, self.upgrade)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/req/req_install.py", line 244, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/index.py", line 486, in find_requirement
all_versions = self._find_all_versions(req.name)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/index.py", line 435, in _find_all_versions
formats = fmt_ctl_formats(self.format_control, canonical_name)
File "/usr/local/lib/python2.7/dist-packages/virtualenv_support/pip-7.0.1-py2.py3-none-any.whl/pip/index.py", line 1260, in fmt_ctl_formats
if canonical_name in fmt_ctl.only_binary:
AttributeError: 'str' object has no attribute 'only_binary'
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "/usr/local/bin/virtualenv", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 705, in main
symlink=options.symlink)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 924, in create_environment
download=download,
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 877, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env)
File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line 783, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /tmp/venv/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error code 2
ν λͺ©λ‘
APScheduler (2.1.2)
apt-xapian-index (0.44)
boto (2.2.2)
chardet (2.0.1)
Cheetah (2.4.4)
cloud-init (0.6.3)
command-not-found (0.2.44)
configobj (4.7.2)
demjson (1.6)
distribute (0.6.24dev-r0)
euca2ools (2.0.0)
futures (2.2.0)
GnuPGInterface (0.3.2)
google-api-python-client (1.3.1)
httplib2 (0.9)
iotop (0.4.4)
keyring (0.9.2)
Landscape-Client (14.12)
language-selector (0.1)
launchpadlib (1.9.12)
lazr.restfulclient (0.12.0)
lazr.uri (1.0.3)
lxml (3.2.3)
M2Crypto (0.21.1)
Markdown (2.6.5)
oauth (1.0.1)
oauth2client (1.4.6)
PAM (0.4.2)
paramiko (1.7.7.1)
pika (0.9.14)
pip (8.0.2)
pyasn1 (0.1.7)
pyasn1-modules (0.0.5)
pycrypto (2.6.1)
pycurl (7.19.5)
pyes (0.99.6)
pymongo (2.8)
pyOpenSSL (0.12)
pyserial (2.5)
python-apt (0.8.3ubuntu7.3)
python-debian (0.1.21ubuntu1)
PyYAML (3.10)
pyzabbix (0.7.2)
requests (2.5.1)
rsa (3.1.4)
setuptools (18.7)
simplejson (3.6.5)
six (1.9.0)
tabulate (0.7.5)
thrift (0.9.0)
tinys3 (0.1.11)
tldextract (1.2.2)
Twisted-Core (11.1.0)
Twisted-Web (11.1.0)
ufw (0.31.1.post1)
unattended-upgrades (0.1)
unicodecsv (0.9.4)
uritemplate (0.6)
urllib3 (1.10)
virtualenv (13.1.0)
wadllib (1.3.0)
wheel (0.29.0)
XlsxWriter (0.7.2)
zbxsend (0.1.6)
zope.interface (3.6.1)
virtualenv λ²μ μ λν΄ 14.0.6.
λ₯Ό λ°©μΆνμ§λ§ dist-packages/virtualenv_support
μ μ€λλ λ°ν΄κ° μλ virtualenv
μ μ΄λ»κ² κ°μ§ μ μλμ§ μ λͺ¨λ₯΄κ² μ΅λλ€. /usr/local/lib/python2.7/dist-packages/
μ μλ λͺ¨λ virtualenv*
νλͺ©μ μ κ±°νκ³ λ€μ μ€μΉνλ κ²μ΄ μ’μ΅λλ€.
κ°μ¬ ν©λλ€ @Ivoz , μ΄κ²μ νΈλ¦μ νμ΅λλ€.
λλ κ·Έκ²μ΄ μ΄λ»κ² μ΄λ° μμΌλ‘ λμλμ§ μ ν λͺ¨λ¦
λλ€. μ°λ¦¬λ μ리μ¬λ₯Ό μ¬μ©νκ³ μμΌλ©° μ리 μ±
μ λ²μ μ κ±°μ μ΅μ μνλ‘ μ μ§ν©λλ€.
μ΄ λͺ¨λ κ²μ΄ λ€μλ³΄λ€ setuptoolsμ λ°ν΄λ‘ μΈν΄ λ°μνλ€λ κ²μ μκ² λ κ²κ³Ό κ°μ λ¬Έμ κ° μμ΅λλ€.
1. pipμμ setuptoolsμ λ°ν΄λ₯Ό μ κ±°νμ΅λλ€.
https://pypi.python.org/pypi/virtualenv μ virutalenv-15.1.0
1) pysocks μ€μΉ μλ - sudo pip install pysocks
2) μ¬μ© - unset all_proxy
3) μ¬μλ
μ΄κ²μ ν΄κ²° λ κ²μ
λλ€ ...
λ΄λ³΄λ΄κΈ° all_proxy= https://proxy_here :port_here/
@skylather μ΄κ²μ λ΄ λ¬Έμ λ₯Ό ν΄κ²°νμ΅λλ€ .... κ°μ¬ν©λλ€
@skylather +1 μ΄κ²λ μ μκ² ν¨κ³Όμ μ΄μμ΅λλ€, κ°μ¬ν©λλ€!!!!
@Ivoz μκ² κ°μ¬λ립λλ€. κ·νμ μμ΄λμ΄λ‘ λ΄ λ¬Έμ κ° ν΄κ²°λμμ΅λλ€.
κ°μ¬ ν©λλ€ @Ivoz μνμ΅λλ€!
@selectee4all κ·νμ μ루μ
μ΄ μ μκ² ν¨κ³Όμ μ
λλ€. "setenv all_proxy https://proxy_here :port_here/"
μ΄ μ€μ λΏλ§ μλλΌ λͺ¨λ μ€μΉμ λν νλ‘μ λ¬Έμ λ₯Ό ν΄κ²°ν©λλ€. μ λ§ κ°μ¬ν©λλ€.
virtualenv λ²μ μ λν΄
14.0.6.
λ₯Ό λ°©μΆνμ§λ§dist-packages/virtualenv_support
μ μ€λλ λ°ν΄κ° μλvirtualenv
μ μ΄λ»κ² κ°μ§ μ μλμ§ μ λͺ¨λ₯΄κ² μ΅λλ€./usr/local/lib/python2.7/dist-packages/
μ μλ λͺ¨λvirtualenv*
νλͺ©μ μ κ±°νκ³ λ€μ μ€μΉνλ κ²μ΄ μ’μ΅λλ€.
μ λ§ κ³ λ§μ΅λλ€. μ΄κ²μ λλ₯Ό λμλ€!
κ°μ₯ μ μ©ν λκΈ
1) pysocks μ€μΉ μλ -
sudo pip install pysocks
2) μ¬μ© -
unset all_proxy
3) μ¬μλ