1

我正在尝试为 Mu 编辑器安装pyperclip模块,当我通过命令行运行它时遇到了一堆错误:

C:\Users\Torthew>pip install pyperclip --target C:\Users\Torthew\AppData\Local\Mu\pkgs
Collecting pyperclip
  Using cached pyperclip-1.7.0.tar.gz (15 kB)
Installing collected packages: pyperclip
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\Torthew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip\_internal\cli\base_command.py", line 186, in _main
    status = self.run(options, args)
  File "C:\Users\Torthew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip\_internal\commands\install.py", line 395, in run
    installed = install_given_reqs(
  File "C:\Users\Torthew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip\_internal\req\__init__.py", line 67, in install_given_reqs
    requirement.install(
  File "C:\Users\Torthew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip\_internal\req\req_install.py", line 781, in install
    scheme = get_scheme(
  File "C:\Users\Torthew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip\_internal\locations.py", line 185, in get_scheme
    scheme = distutils_scheme(
  File "C:\Users\Torthew\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pip\_internal\locations.py", line 125, in distutils_scheme
    i.finalize_options()
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.496.0_x64__qbz5n2kfra8p0\lib\distutils\command\install.py", line 252, 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

我怎样才能解决这个问题?

4

0 回答 0