我正在尝试使用自定义属性使用Chef的'package‘资源安装多个包。当我尝试的时候: package %w(python3 python3-pip) do
action :install
end 上面的代码对我来说工作得很好,但同样的代码在尝试自定义属性时会出现错误。 请看一看- 我的recipe_code: package %w(node['python']['pkg_name'] node['python-pip']['pkg_name']) do
action :install
end Attribut
在我将php53升级到php56之后,在我的FreeBSD8.4上出现了几个错误,来自pkg check -Bd的这个错误消息
pkg: fstat() failed for(/usr/local/lib/python2.7/xml/dom/xmlbuilder.py): No such file or directory
pkg: fstat() failed for(/usr/local/lib/python2.7/xml/etree/ElementPath.py): No such file or directory
pkg: fstat() failed for(/usr/local/
在MacOS上尝试运行刚安装好的pip时,我看到了以下错误:
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 584, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(
我不能进口pkg_resources。每当我试一试它就会显示
Python 3.5.2 (default, Jun 28 2016, 08:46:01)
[GCC 6.1.1 20160602] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkg_resources
Traceback (most recent call last):
File "<st
在Fedora 27上,当我运行cookiecutter 时,我得到:
File "/usr/bin/cookiecutter", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3038, in <module>
@_call_aside
File "/usr/lib/python3.6
boo$ bq
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/bq", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.macosx-10.6-intel/egg/pkg_resources.py", line 3007, in <module>
File
当我运行bin/buildout时,警告重复如下:
/Users/healdream/Playground/python/buildout/parts/buildout/site.py:262: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py, but /Users/healdream/Playground/python/buildout/e
File "/usr/bin/uvicorn", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3254, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3/dist-packages/pkg_r
我下载了fig,但当我运行它时,我得到了这个错误:
File "/usr/local/bin/fig", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python /pkg_resources.py", line 2603, in <module>
working_set.require(__r
root@vps434142:~# certbot
Traceback (most recent call last):
File "/usr/bin/certbot", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.6/site-packages/pkg_resources/__init__.py", line 3017, in <module>
@_call_aside
当我今天试图打开终端以强制更新Firefox时,终端中出现了以下消息:
bash: /usr/local/bin/powerline-shell: /usr/bin/python: bad interpreter: No such file or directory
Ubuntu ver 22.04 lts 64 bit
现在,在尝试重新安装Python 3之后,将显示如下内容
sudo apt install --reinstall python-is-python3
Reading package lists... Done
Building dependency tree... Done
在Mac High Sierra上安装,通过全新安装Brew,完全按照网站上的说明进行安装。它抛出这个错误;
Traceback (most recent call last):
File "/usr/local/bin/mopidy", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resour