2020. 10. 21. 10:57 DEV ENVIRONMENT
AttributeError: type object 'Callable' has no attribute '_abc_registry', 파이썬 PyAutoGui 설치 오류

PyAutoGUI 설치중 에러가 발생했습니다.

콜러블은 abc레지스트리 속성이 없다?!?!

AttributeError: type object 'Callable' has no attribute '_abc_registry'



typing 패키지 삭제

패키지중에 typing이란 패키지가 있으면 설치가 안됩니다.

pip uninstall typing



pyautogui 설치

pip install pyautogui





댓글을 달아 주세요

2020. 10. 20. 17:24 DEV ENVIRONMENT
인텔리제이 파이썬 패키지 설치 실패 PIP 업그레이드, PYTHON PYCHARM INTELLIJ

인텔리제이에서 파이썬 패키지 설치중 오류가 발생했습니다.

그래서 자세히 보니까 PIP가 업그레이드 되었다고 합니다.

PIP가 업글되는지는 몰랐네요.



설치 오류 발생 > Details... 클릭



오류 메세지중에 PIP를 업그레이드해보라고 적혀있습니다.

C:\Users....................... --upgrade pip 까지 복사

WARNING: You are using pip version 20.1.1; however, version 20.2.4 is available.
You should consider upgrading via the 'C:\Users\qqqqqqqq\AppData\Local\Programs\Python\Python38-32\python.exe -m pip install --upgrade pip' command.



시작 > 실행 > cmd (명령프롬프트 실행)

PIP업그레이드 명령어 붙여넣기 > 엔터






댓글을 달아 주세요

2020. 8. 21. 15:55 카테고리 없음
[MAC/PYTHON] 맥북에 파이썬 PIP 설치하기, command not found: pip

파이썬 설치하면 PIP를 쓸수있다길래 해봤는데 안되네요.

윈도우는 잘 모르겠지만 맥은 파이썬을 설치한 후에 PIP는 별도로 설치해야하나봅니다.


터미널에서 실행하면 다음과 같이 pip따위는 없다는 오류가 발생합니다.

kaudo@MacBookPro ~ % pip
zsh: command not found: pip



1. curl로 파이썬 파일을 하나 다운받습니다.
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

kaudo@MacBookPro ~ % curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1840k  100 1840k    0     0  2115k      0 --:--:-- --:--:-- --:--:-- 2113k



2. 이전에 설치해놓은파이썬3로 다운받은 파이썬 파일을 실행합니다.
python3 get-pip.py

kaudo@MacBookPro ~ % python3 get-pip.py
Collecting pip
  Using cached pip-20.2.2-py2.py3-none-any.whl (1.5 MB)
Collecting wheel
  Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Installing collected packages: pip, wheel
  Attempting uninstall: pip
    Found existing installation: pip 20.1.1
    Uninstalling pip-20.1.1:
      Successfully uninstalled pip-20.1.1
Successfully installed pip-20.2.2 wheel-0.35.1



3. 이제 pip를 실행하면 제대로 사용하라는 안내문이 나타납니다.

kaudo@MacBookPro ~ % pip

  pip <command> [options]

  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  check                       Verify installed packages have compatible dependencies.
  config                      Manage local and global configuration.
  search                      Search PyPI for packages.
  cache                       Inspect and manage pip's wheel cache.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion.
  debug                       Show information useful for debugging.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  --isolated                  Run pip in an isolated mode, ignoring environment variables and user configuration.
  -v, --verbose               Give more output. Option is additive, and can be used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output. Option is additive, and can be used up to 3 times (corresponding to
                              WARNING, ERROR, and CRITICAL logging levels).
  --log <path>                Path to a verbose appending log.
  --no-input                  Disable prompting for input.
  --proxy <proxy>             Specify a proxy in the form [user:passwd@]proxy.server:port.
  --retries <retries>         Maximum number of retries each connection should attempt (default 5 times).
  --timeout <sec>             Set the socket timeout (default 15 seconds).
  --exists-action <action>    Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup,
  --trusted-host <hostname>   Mark this host or host:port pair as trusted, even though it does not have valid or any
  --cert <path>               Path to alternate CA bundle.
  --client-cert <path>        Path to SSL client certificate, a single file containing the private key and the
                              certificate in PEM format.
  --cache-dir <dir>           Store the cache data in <dir>.
  --no-cache-dir              Disable the cache.
                              Don't periodically check PyPI to determine whether a new version of pip is available for
                              download. Implied with --no-index.
  --no-color                  Suppress colored output
                              Silence deprecation warnings for upcoming unsupported Pythons.
  --use-feature <feature>     Enable new functionality, that may be backward incompatible.
  --use-deprecated <feature>  Enable deprecated functionality, that will be removed in the future.



파이썬으로 pip를 설치하고 실행한 스크린샷 입니다.



댓글을 달아 주세요

최근에 올라온 글

최근에 달린 댓글