Open
Description
pip install numpy
ValueError: python39.dll not found in ['C:\Program Files\GIMP 2.99\', 'C:\Program Files\GIMP 2.99\lib', 'C:\Program Files\GIMP 2.99\bin', 'C:\WINDOWS\System32']
gimp-python 依赖 mingw,很多库无法安装
anaconda 安装 pygobject ,无法import Gimp。把对应的 typelib文件 复制到 C:\QGB\Anaconda3\Library\lib\girepository-1.0 导入时报错
In [1]: import gi.repository
In [2]: gi.require_version('Gimp', '3.0')
In [3]: from gi.repository import Gimp
** (process:2836): WARNING **: 16:58:05.093: Failed to load shared library 'libpango-1.0-0.dll' referenced by the typelib: 'libpango-1.0-0.dll': 找不到指定的模块。
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-3-e200c53c9634> in <module>
----> 1 from gi.repository import Gimp
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_unlocked(spec)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_backward_compatible(spec)
C:\QGB\Anaconda3\lib\site-packages\gi\importer.py in load_module(self, fullname)
147 # https://bugzilla.gnome.org/show_bug.cgi?id=656314
148 for dep in repository.get_immediate_dependencies(namespace):
--> 149 importlib.import_module('gi.repository.' + dep.split("-")[0])
150 dynamic_module = load_overrides(introspection_module)
151
C:\QGB\Anaconda3\lib\importlib\__init__.py in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
129
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _gcd_import(name, package, level)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_unlocked(spec)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_backward_compatible(spec)
C:\QGB\Anaconda3\lib\site-packages\gi\importer.py in load_module(self, fullname)
147 # https://bugzilla.gnome.org/show_bug.cgi?id=656314
148 for dep in repository.get_immediate_dependencies(namespace):
--> 149 importlib.import_module('gi.repository.' + dep.split("-")[0])
150 dynamic_module = load_overrides(introspection_module)
151
C:\QGB\Anaconda3\lib\importlib\__init__.py in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
129
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _gcd_import(name, package, level)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_unlocked(spec)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_backward_compatible(spec)
C:\QGB\Anaconda3\lib\site-packages\gi\importer.py in load_module(self, fullname)
147 # https://bugzilla.gnome.org/show_bug.cgi?id=656314
148 for dep in repository.get_immediate_dependencies(namespace):
--> 149 importlib.import_module('gi.repository.' + dep.split("-")[0])
150 dynamic_module = load_overrides(introspection_module)
151
C:\QGB\Anaconda3\lib\importlib\__init__.py in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
129
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _gcd_import(name, package, level)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_unlocked(spec)
C:\QGB\Anaconda3\lib\importlib\_bootstrap.py in _load_backward_compatible(spec)
C:\QGB\Anaconda3\lib\site-packages\gi\importer.py in load_module(self, fullname)
148 for dep in repository.get_immediate_dependencies(namespace):
149 importlib.import_module('gi.repository.' + dep.split("-")[0])
--> 150 dynamic_module = load_overrides(introspection_module)
151
152 dynamic_module.__file__ = '<%s>' % fullname
C:\QGB\Anaconda3\lib\site-packages\gi\overrides\__init__.py in load_overrides(introspection_module)
116 return introspection_module
117
--> 118 override_mod = importlib.import_module(override_package_name)
119
120 finally:
C:\QGB\Anaconda3\lib\importlib\__init__.py in import_module(name, package)
125 break
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
129
C:\QGB\Anaconda3\lib\site-packages\gi\overrides\Pango.py in <module>
39
40
---> 41 FontDescription = override(FontDescription)
42 __all__.append('FontDescription')
43
C:\QGB\Anaconda3\lib\site-packages\gi\overrides\__init__.py in override(type_)
193
194 g_type = info.get_g_type()
--> 195 assert g_type != TYPE_NONE
196 if g_type != TYPE_INVALID:
197 g_type.pytype = type_
AssertionError:
Microsoft Windows [版本 10.0.18363.1316]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Program Files\GIMP 2.99\bin>python -V
Python 3.9.11
C:\Program Files\GIMP 2.99\bin>python -m pip
C:\Program Files\GIMP 2.99\bin\python.exe: No module named pip
C:\Program Files\GIMP 2.99\bin>
C:\Program Files\GIMP 2.99\bin>python C:\Users\qgb\.vscode-insiders\extensions\ms-python.python-2022.11.11961004\pythonFiles\get-pip.py
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
Downloading pip-22.1.2-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 43 kB/s
Collecting setuptools
Downloading setuptools-63.2.0-py3-none-any.whl (1.2 MB)
|████████████████████████████████| 1.2 MB 17 kB/s
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, setuptools, pip
WARNING: The script wheel.exe is installed in 'C:\Users\qgb\.local\bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts pip.exe, pip3.10.exe, pip3.9.exe and pip3.exe are installed in 'C:\Users\qgb\.local\bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-22.1.2 setuptools-63.2.0 wheel-0.37.1
C:\Program Files\GIMP 2.99\bin>python -m pip
Usage:
C:\Program Files\GIMP 2.99\bin\python.exe -m pip <command> [options]
Commands:
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.
index Inspect information available from package indexes.
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.
--debug Let unhandled exceptions propagate outside the main subroutine, instead of logging them
to stderr.
--isolated Run pip in an isolated mode, ignoring environment variables and user configuration.
--require-virtualenv Allow pip to only run in a virtual environment; exit with an error otherwise.
-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 scheme://[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,
(a)bort.
--trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any
HTTPS.
--cert <path> Path to PEM-encoded CA certificate bundle. If provided, overrides the default. See 'SSL
Certificate Verification' in pip documentation for more information.
--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.
--disable-pip-version-check
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.
--no-python-version-warning
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.
C:\Program Files\GIMP 2.99\bin>python -m
Argument expected for the -m option
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
C:\Program Files\GIMP 2.99\bin>python -m pip install -i http://pypi.douban.com/simple --trusted-host pypi.douban.com cchardet dill flask requests psutil wcwidth ipython numpy
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: http://pypi.douban.com/simple
Collecting cchardet
Downloading http://pypi.doubanio.com/packages/a8/5d/090c9f0312b7988a9433246c9cf0b566b1ae1374368cfb8ac897218a4f65/cchardet-2.1.7.tar.gz (653 kB)
---------------------------------------- 653.6/653.6 kB 2.2 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting dill
Downloading http://pypi.doubanio.com/packages/12/ff/3b1a8f5d59600393506c64fa14d13afdfe6fe79ed65a18d64026fe9f8356/dill-0.3.5.1-py2.py3-none-any.whl (95 kB)
---------------------------------------- 95.8/95.8 kB 910.5 kB/s eta 0:00:00
Collecting flask
Downloading http://pypi.doubanio.com/packages/af/6a/00d144ac1626fbb44c4ff36519712e258128985a5d0ae43344778ae5cbb9/Flask-2.1.3-py3-none-any.whl (95 kB)
---------------------------------------- 95.6/95.6 kB 907.6 kB/s eta 0:00:00
Collecting requests
Downloading http://pypi.doubanio.com/packages/ca/91/6d9b8ccacd0412c08820f72cebaa4f0c0441b5cda699c90f618b6f8a1b42/requests-2.28.1-py3-none-any.whl (62 kB)
---------------------------------------- 62.8/62.8 kB 1.1 MB/s eta 0:00:00
Collecting psutil
Downloading http://pypi.doubanio.com/packages/d6/de/0999ea2562b96d7165812606b18f7169307b60cd378bc29cf3673322c7e9/psutil-5.9.1.tar.gz (479 kB)
---------------------------------------- 479.1/479.1 kB 3.3 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting wcwidth
Downloading http://pypi.doubanio.com/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting ipython
Downloading http://pypi.doubanio.com/packages/fe/10/0a5925e6e8e4c948b195b4c776cae0d9d7bc6382008a0f7ed2d293bf1cfb/ipython-8.4.0-py3-none-any.whl (750 kB)
---------------------------------------- 750.8/750.8 kB 1.8 MB/s eta 0:00:00
Collecting numpy
Downloading http://pypi.doubanio.com/packages/13/b1/0c22aa7ca1deda4915cdec9562f839546bb252eecf6ad596eaec0592bd35/numpy-1.23.1.tar.gz (10.7 MB)
---------------------------------------- 10.7/10.7 MB 3.3 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting itsdangerous>=2.0
Downloading http://pypi.doubanio.com/packages/68/5f/447e04e828f47465eeab35b5d408b7ebaaaee207f48b7136c5a7267a30ae/itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting Werkzeug>=2.0
Downloading http://pypi.doubanio.com/packages/c4/44/f50f2d22cdfb6d56c03d1b4cc3cfa03ebee2f21b59a7768f151e43415ba5/Werkzeug-2.1.2-py3-none-any.whl (224 kB)
---------------------------------------- 224.9/224.9 kB 2.8 MB/s eta 0:00:00
Collecting importlib-metadata>=3.6.0
Downloading http://pypi.doubanio.com/packages/d2/a2/8c239dc898138f208dd14b441b196e7b3032b94d3137d9d8453e186967fc/importlib_metadata-4.12.0-py3-none-any.whl (21 kB)
Collecting Jinja2>=3.0
Downloading http://pypi.doubanio.com/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB)
---------------------------------------- 133.1/133.1 kB 3.8 MB/s eta 0:00:00
Collecting click>=8.0
Downloading http://pypi.doubanio.com/packages/c2/f1/df59e28c642d583f7dacffb1e0965d0e00b218e0186d7858ac5233dce840/click-8.1.3-py3-none-any.whl (96 kB)
---------------------------------------- 96.6/96.6 kB 5.4 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading http://pypi.doubanio.com/packages/e9/06/d3d367b7af6305b16f0d28ae2aaeb86154fa91f144f036c2d5002a5a202b/certifi-2022.6.15-py3-none-any.whl (160 kB)
---------------------------------------- 160.2/160.2 kB 2.4 MB/s eta 0:00:00
Collecting idna<4,>=2.5
Downloading http://pypi.doubanio.com/packages/04/a2/d918dcd22354d8958fe113e1a3630137e0fc8b44859ade3063982eacd2a4/idna-3.3-py3-none-any.whl (61 kB)
---------------------------------------- 61.2/61.2 kB 3.4 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
Downloading http://pypi.doubanio.com/packages/68/47/93d3d28e97c7577f563903907912f4b3804054e4877a5ba6651f7182c53b/urllib3-1.26.10-py2.py3-none-any.whl (139 kB)
---------------------------------------- 139.2/139.2 kB 2.7 MB/s eta 0:00:00
Collecting charset-normalizer<3,>=2
Downloading http://pypi.doubanio.com/packages/94/69/64b11e8c2fb21f08634468caef885112e682b0ebe2908e74d3616eb1c113/charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting pickleshare
Downloading http://pypi.doubanio.com/packages/9a/41/220f49aaea88bc6fa6cba8d05ecf24676326156c23b991e80b3f2fc24c77/pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting decorator
Downloading http://pypi.doubanio.com/packages/d5/50/83c593b07763e1161326b3b8c6686f0f4b0f24d5526546bee538c89837d6/decorator-5.1.1-py3-none-any.whl (9.1 kB)
Requirement already satisfied: setuptools>=18.5 in c:\users\qgb\.local\lib\python3.9\site-packages (from ipython) (63.2.0)
Collecting pygments>=2.4.0
Downloading http://pypi.doubanio.com/packages/5c/8e/1d9017950034297fffa336c72e693a5b51bbf85141b24a763882cf1977b5/Pygments-2.12.0-py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 3.1 MB/s eta 0:00:00
Collecting stack-data
Downloading http://pypi.doubanio.com/packages/f3/99/9e6a7eea1618eecf8767dc7970722003761403893fa978fa30be6f3846eb/stack_data-0.3.0-py3-none-any.whl (23 kB)
Collecting backcall
Downloading http://pypi.doubanio.com/packages/4c/1c/ff6546b6c12603d8dd1070aa3c3d273ad4c07f5771689a7b69a550e8c951/backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Downloading http://pypi.doubanio.com/packages/b0/8f/09a88160539a1164de562809f8b1d0a36dc1f9d8c6473f4b71ebed17b953/prompt_toolkit-3.0.30-py3-none-any.whl (381 kB)
---------------------------------------- 381.7/381.7 kB 3.4 MB/s eta 0:00:00
Collecting traitlets>=5
Downloading http://pypi.doubanio.com/packages/83/a9/1059771062cb80901c34a4dea020e76269412e69300b4ba12e3356865ad8/traitlets-5.3.0-py3-none-any.whl (106 kB)
---------------------------------------- 106.8/106.8 kB 3.1 MB/s eta 0:00:00
Collecting colorama
Downloading http://pypi.doubanio.com/packages/77/8b/7550e87b2d308a1b711725dfaddc19c695f8c5fa413c640b2be01662f4e6/colorama-0.4.5-py2.py3-none-any.whl (16 kB)
Collecting matplotlib-inline
Downloading http://pypi.doubanio.com/packages/a6/2d/2230afd570c70074e80fd06857ba2bdc5f10c055bd9125665fe276fadb67/matplotlib_inline-0.1.3-py3-none-any.whl (8.2 kB)
Collecting jedi>=0.16
Downloading http://pypi.doubanio.com/packages/b3/0e/836f12ec50075161e365131f13f5758451645af75c2becf61c6351ecec39/jedi-0.18.1-py2.py3-none-any.whl (1.6 MB)
---------------------------------------- 1.6/1.6 MB 3.3 MB/s eta 0:00:00
Collecting zipp>=0.5
Downloading http://pypi.doubanio.com/packages/f0/36/639d6742bcc3ffdce8b85c31d79fcfae7bb04b95f0e5c4c6f8b206a038cc/zipp-3.8.1-py3-none-any.whl (5.6 kB)
Collecting parso<0.9.0,>=0.8.0
Downloading http://pypi.doubanio.com/packages/05/63/8011bd08a4111858f79d2b09aad86638490d62fbf881c44e434a6dfca87b/parso-0.8.3-py2.py3-none-any.whl (100 kB)
---------------------------------------- 100.8/100.8 kB 2.9 MB/s eta 0:00:00
Requirement already satisfied: MarkupSafe>=2.0 in c:\program files\gimp 2.99\lib\python3.9\site-packages (from Jinja2>=3.0->flask) (2.1.0)
Collecting asttokens
Downloading http://pypi.doubanio.com/packages/16/d5/b0ad240c22bba2f4591693b0ca43aae94fbd77fb1e2b107d54fff1462b6f/asttokens-2.0.5-py2.py3-none-any.whl (20 kB)
Collecting executing
Downloading http://pypi.doubanio.com/packages/61/d8/ad89910dc1da01a24135cb3dce702c72a8172f7b8f896ac0c4c34bcaf323/executing-0.8.3-py2.py3-none-any.whl (16 kB)
Collecting pure-eval
Downloading http://pypi.doubanio.com/packages/2b/27/77f9d5684e6bce929f5cfe18d6cfbe5133013c06cb2fbf5933670e60761d/pure_eval-0.2.2-py3-none-any.whl (11 kB)
Collecting six
Downloading http://pypi.doubanio.com/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: cchardet, psutil, numpy
Building wheel for cchardet (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.mingw_x86_64-cpython-39
creating build\lib.mingw_x86_64-cpython-39\cchardet
copying src\cchardet\version.py -> build\lib.mingw_x86_64-cpython-39\cchardet
copying src\cchardet\__init__.py -> build\lib.mingw_x86_64-cpython-39\cchardet
running build_ext
building 'cchardet._cchardet' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cchardet
Running setup.py clean for cchardet
Building wheel for psutil (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for psutil (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [39 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.mingw_x86_64-cpython-39
creating build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_common.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_compat.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_psaix.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_psbsd.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_pslinux.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_psosx.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_psposix.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_pssunos.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\_pswindows.py -> build\lib.mingw_x86_64-cpython-39\psutil
copying psutil\__init__.py -> build\lib.mingw_x86_64-cpython-39\psutil
creating build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\foo.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\runner.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_aix.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_bsd.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_connections.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_contracts.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_linux.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_memleaks.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_misc.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_osx.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_posix.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_process.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_sunos.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_system.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_testutils.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_unicode.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\test_windows.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\__init__.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
copying psutil\tests\__main__.py -> build\lib.mingw_x86_64-cpython-39\psutil\tests
running build_ext
building 'psutil._psutil_windows' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Building wheel for numpy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [100 lines of output]
Running from numpy source directory.
setup.py:86: DeprecationWarning:
`numpy.distutils` is deprecated since NumPy 1.23.0, as a result
of the deprecation of `distutils` itself. It will be removed for
Python >= 3.12. For older Python versions it will remain present.
It is recommended to use `setuptools < 60.0` for those Python versions.
For more details, see:
https://numpy.org/devdocs/reference/distutils_status_migration.html
import numpy.distutils.command.sdist
Processing numpy/random\_bounded_integers.pxd.in
Processing numpy/random\bit_generator.pyx
Processing numpy/random\mtrand.pyx
Processing numpy/random\_bounded_integers.pyx.in
Processing numpy/random\_common.pyx
Processing numpy/random\_generator.pyx
Processing numpy/random\_mt19937.pyx
Processing numpy/random\_pcg64.pyx
Processing numpy/random\_philox.pyx
Processing numpy/random\_sfc64.pyx
Cythonizing sources
INFO: blas_opt_info:
INFO: blas_armpl_info:
Looking for python39.dll
Traceback (most recent call last):
File "C:\Users\qgb\.local\lib\python3.9\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\qgb\.local\lib\python3.9\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\qgb\.local\lib\python3.9\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\qgb\AppData\Local\Temp\pip-build-env-eheya78q\overlay\lib\python3.9\site-packages\setuptools\build_meta.py", line 230, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\qgb\AppData\Local\Temp\pip-build-env-eheya78q\overlay\lib\python3.9\site-packages\setuptools\build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "C:\Users\qgb\AppData\Local\Temp\pip-build-env-eheya78q\overlay\lib\python3.9\site-packages\setuptools\build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\qgb\AppData\Local\Temp\pip-build-env-eheya78q\overlay\lib\python3.9\site-packages\setuptools\build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 493, in <module>
setup_package()
File "setup.py", line 485, in setup_package
setup(**metadata)
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\core.py", line 135, in setup
config = configuration()
File "setup.py", line 136, in configuration
config.add_subpackage('numpy')
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\misc_util.py", line 1050, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\misc_util.py", line 1016, in get_subpackage
config = self._get_configuration_from_setup_py(
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\misc_util.py", line 958, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy\setup.py", line 9, in configuration
config.add_subpackage('core')
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\misc_util.py", line 1050, in add_subpackage
config_list = self.get_subpackage(subpackage_name, subpackage_path,
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\misc_util.py", line 1016, in get_subpackage
config = self._get_configuration_from_setup_py(
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\misc_util.py", line 958, in _get_configuration_from_setup_py
config = setup_module.configuration(*args)
File "numpy\core\setup.py", line 869, in configuration
blas_info = get_info('blas_opt', 0)
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 585, in get_info
return cl().get_info(notfound_action)
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 845, in get_info
self.calc_info()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 2077, in calc_info
if self._calc_info(blas):
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 2063, in _calc_info
return getattr(self, '_calc_info_{}'.format(name))()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 1979, in _calc_info_armpl
info = get_info('blas_armpl')
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 585, in get_info
return cl().get_info(notfound_action)
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 845, in get_info
self.calc_info()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 1337, in calc_info
info = self.check_libs2(lib_dirs, armpl_libs)
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 1001, in check_libs2
exts = self.library_extensions()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 960, in library_extensions
c = customized_ccompiler()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\system_info.py", line 216, in customized_ccompiler
global_compiler = _customized_ccompiler()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\__init__.py", line 62, in customized_ccompiler
c = ccompiler.new_compiler(plat=plat, compiler=compiler, verbose=verbose)
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\ccompiler.py", line 773, in new_compiler
compiler = klass(None, dry_run, force)
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\mingw32ccompiler.py", line 64, in __init__
build_import_library()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\mingw32ccompiler.py", line 351, in build_import_library
return _build_import_library_amd64()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\mingw32ccompiler.py", line 400, in _build_import_library_amd64
dll_file = find_python_dll()
File "C:\Users\qgb\AppData\Local\Temp\pip-install-sn_xmso_\numpy_4d8b19b863d74f2b882b9da43acae70a\numpy\distutils\mingw32ccompiler.py", line 222, in find_python_dll
raise ValueError("%s not found in %s" % (dllname, lib_dirs))
ValueError: python39.dll not found in ['C:\\Program Files\\GIMP 2.99\\', 'C:\\Program Files\\GIMP 2.99\\lib', 'C:\\Program Files\\GIMP 2.99\\bin', 'C:\\WINDOWS\\System32']
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Failed to build cchardet psutil numpy
ERROR: Could not build wheels for psutil, numpy, which is required to install pyproject.toml-based projects
C:\Program Files\GIMP 2.99\bin>
Metadata
Metadata
Assignees
Labels
No labels