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
Related
I am trying to make a discord bot with nextcord, but when I try to install it using command prompt, it gives me this error:
× Building wheel for yarl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
C:\Users\klama\AppData\Local\Temp\pip-build-env-pknvci1v\overlay\Lib\site-packages\setuptools\config\setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
**********************
* Accelerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_py.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_url.py -> build\lib.win-amd64-cpython-311\yarl
copying yarl\__init__.py -> build\lib.win-amd64-cpython-311\yarl
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl\*.html'
warning: no previously-included files found matching 'yarl\*.so'
warning: no previously-included files found matching 'yarl\*.pyd'
no previously-included directories found matching 'docs\_build'
adding license file 'LICENSE'
writing manifest file 'yarl.egg-info\SOURCES.txt'
copying yarl\__init__.pyi -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_c.pyi -> build\lib.win-amd64-cpython-311\yarl
copying yarl\_quoting_c.pyx -> build\lib.win-amd64-cpython-311\yarl
copying yarl\py.typed -> build\lib.win-amd64-cpython-311\yarl
running build_ext
building 'yarl._quoting_c' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yarl
Failed to build frozenlist multidict yarl
ERROR: Could not build wheels for frozenlist, multidict, yarl, which is required to install pyproject.toml-based projects
I've tried updating my pip, but it says "Requirement already satisfied". I've been looking for about 2 hours an a half and still can't find it.
Just instal python 3.10. I tried instal Microsoft Visual C++ 14.0... did not work out
The error message you posted says it all: you need Microsoft Visual C++ 14.0 or greater.
For those of you here because you got this error after updating your Python Docker image to Python 3.11, it may be because gcc and other C++ libraries aren't included in the image anymore. For example, this can be fixed in 3.11.0-slim-buster by adding the following line to your Dockerfile
RUN apt-get update && \
apt-get install -y --no-install-recommends build-essential && \
rm -rf /var/lib/apt/lists/*
I have tried Containerising an django project. I was using python:alpine image. The app needed backports.zoneinfo to be installed as requirement. While running pip install -r requirements.txt its showing error when it try to install the backports.zoneinfo.
requirements.txt
asgiref==3.5.0
backports.zoneinfo==0.2.1
Django==4.0.2
sqlparse==0.4.2
Then I have opened docker container in interactive mode and tried pip install backports.zoneinfo. There also its showing same error.
I have tried the same commands in python:3.9.10 image. It was working fine and the package got installed. This error can be reproduced using any of slim, alpine images.
I have went through couple of fixes. But it wasn't working. Few of the fixes that I have tried are given below. I have tried these inside the container.
pip upgrade
pip upgrade wheel
apt/apk install gcc
apt/apk install gzdata
pip install python-dev-tools
apt/apk install gcc-c++
To reproduce the error
Command
docker pull python:alpine
docker run -it python:alpine sh
pip install backports.zoneinfo
Error
Collecting backports.zoneinfo
Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)
|████████████████████████████████| 74 kB 692 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: backports.zoneinfo
Building wheel for backports.zoneinfo (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmprpnblifv
cwd: /tmp/pip-install-tese9bhy/backports-zoneinfo_cf483b65d8814b8c8a8db93a7369c0cf
Complete output (35 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/backports
copying src/backports/__init__.py -> build/lib.linux-x86_64-3.9/backports
creating build/lib.linux-x86_64-3.9/backports/zoneinfo
copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-x86_64-3.9/backports/zoneinfo
copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-x86_64-3.9/backports/zoneinfo
copying src/backports/zoneinfo/_common.py -> build/lib.linux-x86_64-3.9/backports/zoneinfo
copying src/backports/zoneinfo/__init__.py -> build/lib.linux-x86_64-3.9/backports/zoneinfo
copying src/backports/zoneinfo/_version.py -> build/lib.linux-x86_64-3.9/backports/zoneinfo
running egg_info
writing src/backports.zoneinfo.egg-info/PKG-INFO
writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt
writing requirements to src/backports.zoneinfo.egg-info/requires.txt
writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt
reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.png' under directory 'docs'
warning: no files found matching '*.svg' under directory 'docs'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_output'
adding license file 'LICENSE'
adding license file 'licenses/LICENSE_APACHE'
writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-x86_64-3.9/backports/zoneinfo
copying src/backports/zoneinfo/py.typed -> build/lib.linux-x86_64-3.9/backports/zoneinfo
running build_ext
building 'backports.zoneinfo._czoneinfo' extension
creating build/temp.linux-x86_64-3.9
creating build/temp.linux-x86_64-3.9/lib
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c lib/zoneinfo_module.c -o build/temp.linux-x86_64-3.9/lib/zoneinfo_module.o -std=c99
error: command 'gcc' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for backports.zoneinfo
ERROR: Could not build wheels for backports.zoneinfo which use PEP 517 and cannot be installed directly
It's complaining about a missing file or directory. It's a bit misleading since it's gcc that's missing. In alpine, you'll also have to install musl-dev, too, to get all the required development files.
apk add -u gcc musl-dev
Also, python:alpine3.15 is using python3.10 which doesn't seem to be supported by backports.zoneinfo. https://github.com/pganssle/zoneinfo/issues/111
I'm trying to compile Lupa on Windows 7 64bit, and I've installed all of the dependencies (including LuaJIT2 and Lua 5.2). But when I try to install by running
python setup.py install
I get errors regarding dependancies, usually .m files.
For example:
lupa/_lupa.c(265) : fatal error C1083: Cannot open include file:
'lua.h': No such file or directory
I've tried adding the files manually but it just leads to more issues, like this:
c:\mingw\include\stdint.h:118:0: note: this is the location of the previous definition
#define INT_LEAST64_MIN INT64_MIN
^
In file included from _lupa.c:271:0:
stdint.h:154:0: warning: "INT_LEAST64_MAX" redefined [enabled by default]
#define INT_LEAST64_MAX 0x7fffffffffffffff
^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\stdint.h:9:0,
from c:\mingw\include\wchar.h:876,
from unicodeobject.h:120,
from Python.h:85,
from _lupa.c:30:
c:\mingw\include\stdint.h:123:0: note: this is the location of the previous definition
#define INT_LEAST64_MAX INT64_MAX
^
In file included from _lupa.c:271:0:
stdint.h:155:0: warning: "UINT_LEAST64_MAX" redefined [enabled by default]
#define UINT_LEAST64_MAX 0xffffffffffffffffU
^
Please note this is a small excerpt from the spam I was getting in the console. I've tried more things than I can keep track of. I've tried using gcc to no avail and had friends try and help me. I'm completely stumped. Please help me!
Oh, and here's a full log of me trying to run the installer without changing files around:
No local build of LuaJIT2 found in lupa directory
Checking for installed luajit library using pkg-config
pkg-config found luajit version 2.0.3
building without Cython
running install
running bdist_egg
running egg_info
writing lupa.egg-info\PKG-INFO
writing top-level names to lupa.egg-info\top_level.txt
writing dependency_links to lupa.egg-info\dependency_links.txt
writing lupa.egg-info\PKG-INFO
writing top-level names to lupa.egg-info\top_level.txt
writing dependency_links to lupa.egg-info\dependency_links.txt
reading manifest file 'lupa.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lupa.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
copying lupa\version.py -> build\lib.win-amd64-2.7\lupa
running build_ext
building 'lupa._lupa' extension
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nolog
o /Ox /MD /W3 /GS- /DNDEBUG -DLUA_COMPAT_ALL -I/usr/local/include/luajit-2.0 -IC
:\Python27\include -IC:\Python27\PC /Tclupa/_lupa.c /Fobuild\temp.win-amd64-2.7\
Release\lupa/_lupa.obj
_lupa.c
lupa/_lupa.c(265) : fatal error C1083: Cannot open include file: 'lua.h': No such file or directory
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64
\cl.exe"' failed with exit status 2
I don't know if you still need the answer for this but I had the same problem and looked into lupa folder and saw lupa.pyx which implies you need Cython. Run pip install cython beforehand worked for me.
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
I'm new to programming--loving it. On mac OSX Lion I've installed virtualenv with pip and it works.
But pip install virtualenvwrapper shows warnings and then error: /Library/Python/2.7/site-packages/virtualenvwrapper: Permission denied
$ pip install virtualenvwrapper Downloading/unpacking
virtualenvwrapper Downloading virtualenvwrapper-4.1.1.tar.gz (81kB):
81kB downloaded Running setup.py egg_info for package
virtualenvwrapper
Installed /private/var/folders/6v/3cyz6tp514b2mqt02wc8x9k40000gn/T/pip_build_lynnrasmussen/virtualenvwrapper/pbr-0.5.23-py2.7.egg
[pbr] Processing SOURCES.txt
warning: LocalManifestMaker: standard file '-c' not found
warning: no files found matching 'AUTHORS'
warning: no files found matching 'ChangeLog'
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no files found matching '*.html' under directory 'docs'
warning: no files found matching '*.css' under directory 'docs'
warning: no files found matching '*.js' under directory 'docs'
warning: no files found matching '*.png' under directory 'docs' Requirement already satisfied (use --upgrade to upgrade): virtualenv
in /Library/Python/2.7/site-packages (from virtualenvwrapper)
Downloading/unpacking virtualenv-clone (from virtualenvwrapper)
Downloading virtualenv-clone-0.2.4.tar.gz Running setup.py egg_info
for package virtualenv-clone
Downloading/unpacking stevedore (from virtualenvwrapper) Downloading stevedore-0.13.tar.gz (760kB): 760kB downloaded Running
setup.py egg_info for package stevedore
Installed /private/var/folders/6v/3cyz6tp514b2mqt02wc8x9k40000gn/T/pip_build_lynnrasmussen/stevedore/pbr-0.5.23-py2.7.egg
[pbr] Processing SOURCES.txt
warning: LocalManifestMaker: standard file '-c' not found
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no files found matching '*.py' under directory 'tests' Installing collected packages: virtualenvwrapper, virtualenv-clone,
stevedore Running setup.py install for virtualenvwrapper
[pbr] Reusing existing SOURCES.txt
changing mode of build/scripts-2.7/virtualenvwrapper.sh from 644 to 755
changing mode of build/scripts-2.7/virtualenvwrapper_lazy.sh from 644 to 755
Skipping installation of /Library/Python/2.7/site-packages/virtualenvwrapper/init.py
(namespace package)
error: /Library/Python/2.7/site-packages/virtualenvwrapper: Permission denied
Complete output from command /usr/bin/python -c "import setuptools;file='/private/var/folders/6v/3cyz6tp514b2mqt02wc8x9k40000gn/T/pip_build_lynnrasmussen/virtualenvwrapper/setup.py';exec(compile(open(file).read().replace('\r\n',
'\n'), file, 'exec'))" install --record
/var/folders/6v/3cyz6tp514b2mqt02wc8x9k40000gn/T/pip-EJKEQQ-record/install-record.txt
--single-version-externally-managed:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/virtualenvwrapper
copying virtualenvwrapper/init.py -> build/lib/virtualenvwrapper
copying virtualenvwrapper/hook_loader.py ->
build/lib/virtualenvwrapper
copying virtualenvwrapper/project.py -> build/lib/virtualenvwrapper
copying virtualenvwrapper/user_scripts.py ->
build/lib/virtualenvwrapper
running egg_info
writing requirements to virtualenvwrapper.egg-info/requires.txt
writing virtualenvwrapper.egg-info/PKG-INFO
writing namespace_packages to
virtualenvwrapper.egg-info/namespace_packages.txt
writing top-level names to virtualenvwrapper.egg-info/top_level.txt
writing dependency_links to
virtualenvwrapper.egg-info/dependency_links.txt
writing entry points to virtualenvwrapper.egg-info/entry_points.txt
[pbr] Reusing existing SOURCES.txt
running build_scripts
creating build/scripts-2.7
copying virtualenvwrapper.sh -> build/scripts-2.7
copying virtualenvwrapper_lazy.sh -> build/scripts-2.7
changing mode of build/scripts-2.7/virtualenvwrapper.sh from 644 to
755
changing mode of build/scripts-2.7/virtualenvwrapper_lazy.sh from 644
to 755
running install_lib
Skipping installation of
/Library/Python/2.7/site-packages/virtualenvwrapper/init.py
(namespace package)
copying virtualenvwrapper/hook_loader.py ->
/Library/Python/2.7/site-packages/virtualenvwrapper
error: /Library/Python/2.7/site-packages/virtualenvwrapper: Permission
denied
You should install as Super User.
Try :
sudo pip install virtualenvwrapper