I am running the following command
pip install -r .\requirements.txt
in the project directory and get the following error
Using cached psycopg2-2.5.3.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\psycopg2.egg-info
writing pip-egg-info\psycopg2.egg-info\PKG-INFO
writing top-level names to pip-egg-info\psycopg2.egg-info\top_level.txt
writing dependency_links to pip-egg-info\psycopg2.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\psycopg2.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\eugene~1\appdata\local\temp\pip-build-mil943\psy
copg2
C:\Program Files\PostgreSQL\9.4\bin has to been in environment path
Related
these are the errors when i try to do pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
python 3.10.8
how to fix this issue:
(venv) PS D:\Elpark camera test-- kims\ocr-live\easy-yolov7> pip install -e git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
Obtaining cython-bbox from git+https://github.com/samson-wang/cython_bbox.git#egg=cython-bbox
Updating d:\elpark camera test-- kims\ocr-live\venv\src\cython-bbox clone
Running command git fetch -q --tags
Running command git reset --hard -q 17a9209162d2107c1d2d17ea66fb2a3c7fa0c73e
Preparing metadata (setup.py) ... done
Requirement already satisfied: Cython in d:\elpark camera test-- kims\ocr-live\venv\lib\site-packages (from cython-bbox) (0.29.33)
Requirement already satisfied: numpy in d:\elpark camera test-- kims\ocr-live\venv\lib\site-packages (from cython-bbox) (1.23.5)
Installing collected packages: cython-bbox
Running setup.py develop for cython-bbox
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running develop
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is
deprecated. Use build and pip and other standards-based tools.
warnings.warn(
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated
. Use build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing cython_bbox.egg-info\PKG-INFO
writing dependency_links to cython_bbox.egg-info\dependency_links.txt
writing requirements to cython_bbox.egg-info\requires.txt
writing top-level names to cython_bbox.egg-info\top_level.txt
reading manifest file 'cython_bbox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'cython_bbox.egg-info\SOURCES.txt'
running build_ext
skipping 'src\cython_bbox.c' Cython extension (up-to-date)
building 'cython_bbox' extension
D:\vs\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-ID:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\
numpy\core\include" "-ID:\Elpark camera test-- kims\ocr-live\venv\include" -IC:\Users\user\AppData\Local\Programs\Python\Python310\include -IC:\Users\user\AppData\
Local\Programs\Python\Python310\Include -ID:\vs\VC\Tools\MSVC\14.33.31629\include -ID:\vs\VC\Auxiliary\VS\include /Tcsrc\cython_bbox.c /Fobuild\temp.win-amd64-cpyt
hon-310\Release\src\cython_bbox.obj gcc
cl : Command line warning D9024 : unrecognized source file type 'gcc', object file assumed
cl : Command line warning D9027 : source file 'gcc' ignored
cython_bbox.c
C:\Users\user\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or director
y
error: command 'D:\\vs\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running develop
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is dep
recated. Use build and pip and other standards-based tools.
warnings.warn(
D:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Us
e build and pip and other standards-based tools.
warnings.warn(
running egg_info
writing cython_bbox.egg-info\PKG-INFO
writing dependency_links to cython_bbox.egg-info\dependency_links.txt
writing requirements to cython_bbox.egg-info\requires.txt
writing top-level names to cython_bbox.egg-info\top_level.txt
reading manifest file 'cython_bbox.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'cython_bbox.egg-info\SOURCES.txt'
running build_ext
skipping 'src\cython_bbox.c' Cython extension (up-to-date)
building 'cython_bbox' extension
D:\vs\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-ID:\Elpark camera test-- kims\ocr-live\venv\lib\site-packages\nump
y\core\include" "-ID:\Elpark camera test-- kims\ocr-live\venv\include" -IC:\Users\user\AppData\Local\Programs\Python\Python310\include -IC:\Users\user\AppData\Loca
l\Programs\Python\Python310\Include -ID:\vs\VC\Tools\MSVC\14.33.31629\include -ID:\vs\VC\Auxiliary\VS\include /Tcsrc\cython_bbox.c /Fobuild\temp.win-amd64-cpython-
310\Release\src\cython_bbox.obj gcc
cl : Command line warning D9024 : unrecognized source file type 'gcc', object file assumed
cl : Command line warning D9027 : source file 'gcc' ignored
cython_bbox.c
C:\Users\user\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'D:\\vs\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
I am trying to install this library nxontology using the command below:
pip install nxontology
It is giving me the error below:
Building wheel for fastobo (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for fastobo (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_py
package init file 'src\py\__init__.py' not found (or not a regular file)
package init file 'src\py\header\__init__.py' not found (or not a regular file)
package init file 'src\py\instance\__init__.py' not found (or not a regular file)
package init file 'src\py\term\__init__.py' not found (or not a regular file)
package init file 'src\py\typedef\__init__.py' not found (or not a regular file)
running build_ext
running build_rust
creating build
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\cargo
creating build\temp.win-amd64-cpython-310\Release\rustup
downloading rustup.sh install script
installing Rust compiler to build\temp.win-amd64-cpython-310\Release
error: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastobo
Failed to build fastobo
ERROR: Could not build wheels for fastobo, which is required to install pyproject.toml-based projects
I saw some answers to similar errors but none of them worked for me.
pip version: pip 22.1.1 from C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
Project python interpreter: Python 3.9.
I would really appreciate if you have any idea how to fix this.
Collecting psycopg2
Using cached psycopg2-2.9.3.tar.gz (380 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-irgb8yga/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-irgb8yga/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-irgb8yga/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-irgb8yga/psycopg2.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-irgb8yga/psycopg2.egg-info/SOURCES.txt'
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
As recommended in the log try using psycopg2-binary as package not psycopg2.
That's how I use it and it's working on all different environments.
when I tried to install manim in ubuntu18.04,I encoutered bug about "PkgResourcesDeprecationWarning".I tried to fix it ,but failed.Hope someone good could help me out,pls.
tags:python3.7 ubuntu18.04 manim
Installed /usr/lib/python3.7/site-packages/manimgl-1.5.0-py3.7.egg
Processing dependencies for manimgl==1.5.0
Searching for manimpango<0.4.0,>=0.2.0
Reading https://pypi.org/simple/manimpango/
/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py:125: PkgResourcesDeprecationWarning: is an invalid version and will not be supported in a future release
PkgResourcesDeprecationWarning,
Downloading https://files.pythonhosted.org/packages/5e/04/00af048a5d3a645a053e39db4b3e61da3a8b1b95b6f0d718684028207575/ManimPango-0.3.1.tar.gz#sha256=a3a7e5a417507e9ccf307f6da40291a9fc2757a3c9a04de33dd18e92f63fcc25
Best match: ManimPango 0.3.1
Processing ManimPango-0.3.1.tar.gz
Writing /tmp/easy_install-ojd30ypi/ManimPango-0.3.1/setup.cfg
Running ManimPango-0.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ojd30ypi/ManimPango-0.3.1/egg-dist-tmp-g764jlvh
no previously-included directories found matching 'docs/_build'
/usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
x86_64-linux-gnu-gcc: error: /tmp/easy_install-ojd30ypi/ManimPango-0.3.1/manimpango/cmanimpango.c: 没有那个文件或目录
x86_64-linux-gnu-gcc: fatal error: no input files
compilation terminated.
error: Setup script exited with error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
getting the error in scandir installation any suggestions to rectify if
C:\Python27\scandir-1.5\scandir-1.5>python -m setup.py install
running install
running bdist_egg
running egg_info
writing scandir.egg-info\PKG-INFO
writing top-level names to scandir.egg-info\top_level.txt
writing dependency_links to scandir.egg-info\dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'scandir.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'scandir.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building '_scandir' extension
error: INCLUDE environment variable is empty