파이썬 라이브러리 설치 시 pip 실행 오류

12,372 views
Skip to first unread message

Sanghyo Lee

unread,
Apr 26, 2018, 8:25:36 PM4/26/18
to BYROBOT
간만에 petrone 라이브러리를 업데이트하고 다시 설치하려고 했더니 오류가 발생합니다.


>pip --no-cache-dir install petrone
Fatal error in launcher: Unable to create process using '""c:\users\[...]\anaconda3\python.exe"  "C:\Users\[...]\Anaconda3\Scripts\pip.exe" --no-cache-dir install petrone' 


Anaconda를 쓰고 있는 중이라 Anaconda를 업데이트 해봅니다.


>conda install -c anaconda python
Fetching package metadata .............
Solving package specifications: .
Package plan for installation in environment C:\Users\[...]\Anaconda3:
The following NEW packages will be INSTALLED:
    ca-certificates: 2018.03.07-0  anaconda
    vc:              14-h0510ff6_3 anaconda
The following packages will be UPDATED:
    conda:           4.3.23-py36_0          --> 4.5.1-py36_0          anaconda
    conda-env:       2.6.0-0                --> 2.6.0-h36134e3_1      anaconda
    openssl:         1.0.2l-vc14_0          --> 1.0.2l-vc14hf4c37d5_5 anaconda [vc14]
    pycosat:         0.6.2-py36_0           --> 0.6.3-py36h413d8a4_0  anaconda
    python:          3.6.1-2                --> 3.6.5-h0c2934d_0      anaconda
Proceed ([y]/n)? y
ca-certificate 100% |###############################| Time: 0:00:02  60.99 kB/s
conda-env-2.6. 100% |###############################| Time: 0:00:00 538.91 kB/s
vc-14-h0510ff6 100% |###############################| Time: 0:00:00 505.98 kB/s
openssl-1.0.2l 100% |###############################| Time: 0:00:05 987.32 kB/s
python-3.6.5-h 100% |###############################| Time: 0:00:08   2.66 MB/s
pycosat-0.6.3- 100% |###############################| Time: 0:00:00   7.42 MB/s
conda-4.5.1-py 100% |###############################| Time: 0:00:00   1.51 MB/s


그래도 pip가 동작하지 않습니다.
구글에서 검색해보니 pip를 업데이트 하라고 하네요


그래서 시도해봅니다.


>python -m pip install --upgrade pip
Collecting pip
  Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4
/pip-10.0.1-py2.py3-none-any.whl (1.3MB)
    100% |████████████████████████████████| 1.3MB 5.5MB/s
Installing collected packages: pip
  Found existing installation: pip 10.0.0
    Uninstalling pip-10.0.0:
      Successfully uninstalled pip-10.0.0
Successfully installed pip-10.0.1


혹시나해서 petrone 라이브러리는 지웠습니다.


>pip uninstall petrone
Uninstalling petrone-0.1.50:
  Would remove:
    c:\users\[...]\anaconda3\lib\site-packages\petrone-0.1.50.dist-info\*
    c:\users\[...]\anaconda3\lib\site-packages\petrone\*
Proceed (y/n)? y
  Successfully uninstalled petrone-0.1.50


다시 petrone 라이브러리 설치를 시도해봅니다.


>pip --no-cache-dir install petrone
Collecting petrone
  Downloading https://files.pythonhosted.org/packages/2c/6e/d8e54122414fea109913bc790b3f98df6ecebe6217eed439dbeace1948d4
/petrone-0.1.52-py3-none-any.whl
Requirement already satisfied: numpy in c:\users\sanghyo lee\anaconda3\lib\site-packages (from petrone) (1.12.1)
Requirement already satisfied: colorama in c:\users\sanghyo lee\anaconda3\lib\site-packages (from petrone) (0.3.9)
Requirement already satisfied: pyserial in c:\users\sanghyo lee\anaconda3\lib\site-packages (from petrone) (3.4)
Installing collected packages: petrone
Successfully installed petrone-0.1.52


이제 정상적으로 설치가 되네요.

Anaconda가 아니더라도 동일하게 pip를 업그레이드하면 정상적으로 라이브러리를 설치하실 수 있을겁니다.

그래도 안되시면 파이썬 설치부터 다시 해보시길 권해드립니다.


Reply all
Reply to author
Forward
0 new messages