virtualenv 15.0.3, python 2.7.12, pip 8.1.2, wheel 0.30.0.a0 ๋ฐ setuptools 18.5 ์ฌ์ฉ.
์ฐธ๊ณ : venv ์์ด_ ์ค์นํ๋ ค๊ณ ํ๋ฉด ์๋ํ์ง๋ง SSL ๋ฌธ์ ๋ ์์ต๋๋ค. ๋ฐ๋ผ์ virtualenv
์ ๊ด๋ จ๋ ๋ฌธ์ ๊ฐ ์์ ์ ์์ผ๋ฏ๋ก ์ฌ๊ธฐ๋ฅผ ํ์ธํ๊ณ ์ถ์์ต๋๋ค.
$ virtualenv tester
Installing setuptools, pip, wheel...done.
$ . tester/bin/activate
(tester) $ cd PROJECT
(tester) $ pip install -e .
Obtaining file:///Users/jdandrea/projects/MyProject
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/pbr/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pbr' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or working download links found for pbr>=1.8
Traceback (most recent call last):
......
์ฐธ์กฐ: ์ ์ฒด ์ญ์ถ์ .
virtualenv 14.0.6 ์ ์ธ์ฆ์์ ๊ด๋ จ๋ SSL ๋ฌธ์ ๋ฅผ ํด๊ฒฐ ํ๋ค๊ณ ๋ณด๊ณ ๋์์ต๋๋ค. ์๋ง๋ ์ด๊ฒ์ ๋ค๋ฅธ/์๋ก์ด ๋ฌธ์ ์ ๋๊น? ๋ถ์์ ํ.
ํฅ๋ฏธ๋ก์ด. venv ๋ด์์ pbr
๋ฅผ ์๋์ผ๋ก ์ฒ์ ์ค์นํ๋ฉด SSL ๋ถ๋ง ์์ด pip install -e .
๊ฐ ์๋ํ๋ค๋ ๊ฒ์ ๋ฐฉ๊ธ ๋ฐ๊ฒฌํ์ต๋๋ค.
๋๋ ์ด๊ฒ์ ์๋ก์ด venv๋ก ๋ค์ ํ์ธํ์ต๋๋ค.
# go to project directory
$ pip install -e .
Obtaining file:///Users/jdandrea/projects/myproject
Complete output from command python setup.py egg_info:
Download error on https://pypi.python.org/simple/pbr/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
Couldn't find index page for 'pbr' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or working download links found for pbr>=1.8
Traceback (most recent call last):
......
$ pip install pbr>=1.8
$ pip list | grep pbr
pbr (1.10.0)
$ pip install -e
# everything installs, zero errors
๋๋ ๋ชจ๋ ๊ฒ์ด ์บ์์์ ์ค๋ ๊ฒ์ ์์์ผ๋ฏ๋ก venv๋ฅผ ๋ค์ ๋ง๋ค๊ณ ์ด๋ฒ์๋ --no-cache-dir
๋ฅผ ์ฌ์ฉํ์ฌ ๋ค์ ์๋ํ์ต๋๋ค.
pbr
@manually ๋ฅผ ์ฒซ ๋ฒ์งธ ๋จ๊ณ๋ก ์ค์นํ์ง ์์ผ๋ฉด ์ค์น๊ฐ ๊ณ์ ์คํจํ์ต๋๋ค.
$ pip install --no-cache-dir 'pbr>=1.8'
Collecting pbr>=1.8
Downloading pbr-1.10.0-py2.py3-none-any.whl (96kB)
......
Installing collected packages: pbr
Successfully installed pbr-1.10.0
$ pip install --no-cache-dir -e .
# everything installs, zero errors
๋ฌธ์ ํด๊ฒฐ๋จ! virtualenv ๋ฌธ์ ๊ฐ ์๋๋๋ค.
๋ํ MacPorts๋ฅผ ์ฌ์ฉํ๊ณ ์์ผ๋ฏ๋ก sudo port install curl-ca-bundle
( ์ด ๊ฒ์๋ฌผ ์ฐธ์กฐ )์์ ๋ฐ๋ก ํด๊ฒฐํ์ต๋๋ค.
๋ฐ๋ผ์ ์ค์ ca-๋ฒ๋ค์ Python์ ์ค์นํด์ผ ํฉ๋๊น? ์๋๋ฉด OS์ ์ต์ ๋ฒ์ ์ ์ฌ์ฉํ๋๋ก ์ง์ํด์ผ ํฉ๋๊น?
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
ํฅ๋ฏธ๋ก์ด. venv ๋ด์์
pbr
๋ฅผ ์๋์ผ๋ก ์ฒ์ ์ค์นํ๋ฉด SSL ๋ถ๋ง ์์ดpip install -e .
๊ฐ ์๋ํ๋ค๋ ๊ฒ์ ๋ฐฉ๊ธ ๋ฐ๊ฒฌํ์ต๋๋ค.๋๋ ์ด๊ฒ์ ์๋ก์ด venv๋ก ๋ค์ ํ์ธํ์ต๋๋ค.
๋๋ ๋ชจ๋ ๊ฒ์ด ์บ์์์ ์ค๋ ๊ฒ์ ์์์ผ๋ฏ๋ก venv๋ฅผ ๋ค์ ๋ง๋ค๊ณ ์ด๋ฒ์๋
--no-cache-dir
๋ฅผ ์ฌ์ฉํ์ฌ ๋ค์ ์๋ํ์ต๋๋ค.pbr
@manually ๋ฅผ ์ฒซ ๋ฒ์งธ ๋จ๊ณ๋ก ์ค์นํ์ง ์์ผ๋ฉด ์ค์น๊ฐ ๊ณ์ ์คํจํ์ต๋๋ค.