본문 바로가기
개발/버그 픽스

[OSX] #001 pip: command not found

by DoBeFree 2022. 3. 19.
반응형

OS 및 파이썬 버전

OSX
Anaconda Python 3.9.7

상황

파이썬 가상환경 생성 후 라이브러리 설치를 위한 pip 메시지 입력시에 pip를 찾을 수 없는 현상. 파이썬은 이미 설치되어 있고 가상환경이 아닌 기본환경의 경우 pip 명령어를 정상적으로 사용할 수 있는 상황

에러메시지 : pip: command not found

(plotly)~ pip                      
pip: command not found

해결

conda install pip 를 통해서 해결

(plotly) ~ conda install pip                 
Collecting package metadata (current_repodata.json): done
Solving environment: done

==> WARNING: A newer version of conda exists. <==
  current version: 4.10.3
  latest version: 4.12.0

Please update conda by running

    $ conda update -n base -c defaults conda

## Package Plan ##
  environment location: ~/opt/anaconda3/envs/plotly

  added / updated specs:
    - pip

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ca-certificates-2022.2.1   |       hecd8cb5_0         122 KB
    certifi-2021.10.8          |   py39hecd8cb5_2         152 KB
    sqlite-3.37.2              |       h707629a_0         1.2 MB
    ------------------------------------------------------------
                                           Total:         1.4 MB

The following NEW packages will be INSTALLED:

  ca-certificates    pkgs/main/osx-64::ca-certificates-2022.2.1-hecd8cb5_0
  certifi            pkgs/main/osx-64::certifi-2021.10.8-py39hecd8cb5_2
  libcxx             pkgs/main/osx-64::libcxx-12.0.0-h2f01273_0
  libffi             pkgs/main/osx-64::libffi-3.3-hb1e8313_2
  ncurses            pkgs/main/osx-64::ncurses-6.3-hca72f7f_2
  openssl            pkgs/main/osx-64::openssl-1.1.1m-hca72f7f_0
  pip                pkgs/main/osx-64::pip-21.2.4-py39hecd8cb5_0
  python             pkgs/main/osx-64::python-3.9.7-h88f2d9e_1
  readline           pkgs/main/osx-64::readline-8.1.2-hca72f7f_1
  setuptools         pkgs/main/osx-64::setuptools-58.0.4-py39hecd8cb5_0
  sqlite             pkgs/main/osx-64::sqlite-3.37.2-h707629a_0
  tk                 pkgs/main/osx-64::tk-8.6.11-h7bc2e8c_0
  tzdata             pkgs/main/noarch::tzdata-2021e-hda174b7_0
  wheel              pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0
  xz                 pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
  zlib               pkgs/main/osx-64::zlib-1.2.11-h4dc903c_4

Proceed ([y]/n)? y

Downloading and Extracting Packages
sqlite-3.37.2        | 1.2 MB    | ##################################################################### | 100% 
ca-certificates-2022 | 122 KB    | ##################################################################### | 100% 
certifi-2021.10.8    | 152 KB    | ##################################################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
반응형

댓글