Linux/Python/pip3/tips luckey!!!! - memo random

Linux

  1. pip3 install [パッケージ名]のインストール先の確認
    1. pip3 show [パッケージ名]
  2. pip3 install [パーケージ名] -t [インストール先]でエラーが出た場合の対処
    Exception:
    Traceback (most recent call last):
     File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main    status = self.run(options, args)
     File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 360, in run
       prefix=options.prefix_path,
     File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 784, in install
       **kwargs
     File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 851, in install
       self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
     File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files
       isolated=self.isolated,
     File "/usr/lib/python3/dist-packages/pip/wheel.py", line 247, in move_wheel_files
       prefix=prefix,
     File "/usr/lib/python3/dist-packages/pip/locations.py", line 153, in distutils_scheme
       i.finalize_options()
     File "/usr/lib/python3.6/distutils/command/install.py", line 274, in finalize_options
       raise DistutilsOptionError("can't combine user with prefix, "
    distutils.errors.DistutilsOptionError: can't combine user with prefix, exec_prefix/home, or install_(plat)base
    1. pip3 install [パーケージ名] --system -t [インストール先]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2019-09-04 (水) 11:08:54 (1127d)