为什么在开发模式下尝试 dffml 时出错?
getting error why trying to dffml in development mode?
这些是我运行在文档
中提到的命令
git clone https://github.com/intel/dffml
cd dffml
python3 -m pip install -U pip setuptools wheel
python3 -m pip install --prefix=~/.local -e .[dev]
但是我在最后一个命令中收到警告和错误
警告
WARNING: Ignoring invalid distribution -jango (/home/dhruv/.local/lib/python3.8/site-packages)
错误
Found existing installation: Pillow 7.0.0
Uninstalling Pillow-7.0.0:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '_imagingtk.cpython-38-x86_64-linux-gnu.so'
Consider using the `--user` option or check the permissions.
并且程序在错误后停止执行,我不知道错误的来源是什么以及如何删除错误,感谢您的帮助
对于错误,请尝试使用 --user
,如下所示:
python3 -m pip install --user -e .[dev]
Their docs说说他们为什么不使用--user
,但是解释对我来说意义不大。
Installing to your home directory will reduce permissions issues. To do this we use the --prefix=~/.local
flag. pip
sometimes gets confused about the --user
flag (and will blow up in your face if you try to pass it). So we use the --prefix=~/.local
flag, which has the same effect but should always work.
具体来说,我不知道为什么pip
会“糊涂”,但我不是专家
这些是我运行在文档
中提到的命令git clone https://github.com/intel/dffml
cd dffml
python3 -m pip install -U pip setuptools wheel
python3 -m pip install --prefix=~/.local -e .[dev]
但是我在最后一个命令中收到警告和错误
警告
WARNING: Ignoring invalid distribution -jango (/home/dhruv/.local/lib/python3.8/site-packages)
错误
Found existing installation: Pillow 7.0.0
Uninstalling Pillow-7.0.0:
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '_imagingtk.cpython-38-x86_64-linux-gnu.so'
Consider using the `--user` option or check the permissions.
并且程序在错误后停止执行,我不知道错误的来源是什么以及如何删除错误,感谢您的帮助
对于错误,请尝试使用 --user
,如下所示:
python3 -m pip install --user -e .[dev]
Their docs说说他们为什么不使用--user
,但是解释对我来说意义不大。
Installing to your home directory will reduce permissions issues. To do this we use the
--prefix=~/.local
flag.pip
sometimes gets confused about the--user
flag (and will blow up in your face if you try to pass it). So we use the--prefix=~/.local
flag, which has the same effect but should always work.
具体来说,我不知道为什么pip
会“糊涂”,但我不是专家