I’m experiencing the same problem when running make build
after cloning the repo.
Here’s the error trace:
Installing backend dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-43g1ttd5/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- qdldl
cwd: None
Complete output (128 lines):
Collecting qdldl
Downloading qdldl-0.1.5.post0.tar.gz (69 kB)
Collecting numpy>=1.7
Using cached numpy-1.20.1-cp37-cp37m-manylinux2014_aarch64.whl (12.6 MB)
Collecting scipy>=0.13.2
Using cached scipy-1.6.0-cp37-cp37m-manylinux2014_aarch64.whl (26.0 MB)
Building wheels for collected packages: qdldl
Building wheel for qdldl (setup.py): started
Building wheel for qdldl (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q3vwclg1/qdldl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q3vwclg1/qdldl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ylsdjb6c
cwd: /tmp/pip-install-q3vwclg1/qdldl/
Complete output (49 lines):
running bdist_wheel
running build
running build_ext
Traceback (most recent call last):
File "/tmp/pip-install-q3vwclg1/qdldl/setup.py", line 78, in build_extensions
check_output(['cmake', '--version'])
File "/usr/local/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-q3vwclg1/qdldl/setup.py", line 124, in <module>
ext_modules=[qdldl],
File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 161, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/tmp/pip-install-q3vwclg1/qdldl/setup.py", line 80, in build_extensions
raise RuntimeError("CMake must be installed to build qdldl")
RuntimeError: CMake must be installed to build qdldl
----------------------------------------
ERROR: Failed building wheel for qdldl
Running setup.py clean for qdldl
Failed to build qdldl
Installing collected packages: numpy, scipy, qdldl
Running setup.py install for qdldl: started
Running setup.py install for qdldl: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q3vwclg1/qdldl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q3vwclg1/qdldl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2dze6r2t/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-43g1ttd5/normal --compile --install-headers /tmp/pip-build-env-43g1ttd5/normal/include/python3.7m/qdldl
cwd: /tmp/pip-install-q3vwclg1/qdldl/
Complete output (51 lines):
running install
running build
running build_ext
Traceback (most recent call last):
File "/tmp/pip-install-q3vwclg1/qdldl/setup.py", line 78, in build_extensions
check_output(['cmake', '--version'])
File "/usr/local/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/local/lib/python3.7/subprocess.py", line 488, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/usr/local/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-q3vwclg1/qdldl/setup.py", line 124, in <module>
ext_modules=[qdldl],
File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 161, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/local/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 87, in run
_build_ext.run(self)
File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/tmp/pip-install-q3vwclg1/qdldl/setup.py", line 80, in build_extensions
raise RuntimeError("CMake must be installed to build qdldl")
RuntimeError: CMake must be installed to build qdldl
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q3vwclg1/qdldl/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q3vwclg1/qdldl/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2dze6r2t/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-43g1ttd5/normal --compile --install-headers /tmp/pip-build-env-43g1ttd5/normal/include/python3.7m/qdldl Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-43g1ttd5/normal --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- qdldl Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
ERROR: Service 'pypfopt' failed to build : The command '/bin/sh -c buildDeps='gcc g++' && apt-get update && apt-get install -y $buildDeps --no-install-recommends && pip install --no-cache-dir -r /tmp/pypfopt/requirements.txt && pip install --no-cache-dir /tmp/pyhrp && rm -r /tmp/pypfopt && apt-get purge -y --auto-remove $buildDeps' returned a non-zero code: 1
make: *** [build] Error 1
Trying to install pyportfolioopt but got errors. Can anyone suggest what I should do?
Output:
(base) [email protected]:~$ pip install pyportfolioopt
Collecting pyportfolioopt
Using cached https://files.pythonhosted.org/packages/46/55/7d39d78d554ee33a7317e345caf01339da11406c28f18bc48794fe967935/PyPortfolioOpt-1.4.1-py3-none-any.whl
Collecting cvxpy<2.0.0,>=1.1.10 (from pyportfolioopt)
Requirement already satisfied: pandas>=0.19 in ./anaconda3/lib/python3.7/site-packages (from pyportfolioopt) (0.24.2)
Requirement already satisfied: scipy<2.0,>=1.3 in ./anaconda3/lib/python3.7/site-packages (from pyportfolioopt) (1.6.2)
Requirement already satisfied: numpy<2.0,>=1.12 in ./anaconda3/lib/python3.7/site-packages (from pyportfolioopt) (1.20.2)
Collecting scs>=1.1.6 (from cvxpy<2.0.0,>=1.1.10->pyportfolioopt)
Collecting osqp>=0.4.1 (from cvxpy<2.0.0,>=1.1.10->pyportfolioopt)
Using cached https://files.pythonhosted.org/packages/4d/86/b96693d3f4501afb8a527858764383fc9a192c9f9f020bdf90dbdaf669b4/osqp-0.6.2.post0-cp37-cp37m-manylinux1_x86_64.whl
Requirement already satisfied: ecos>=2 in ./anaconda3/lib/python3.7/site-packages (from cvxpy<2.0.0,>=1.1.10->pyportfolioopt) (2.0.7.post1)
Requirement already satisfied: python-dateutil>=2.5.0 in ./anaconda3/lib/python3.7/site-packages (from pandas>=0.19->pyportfolioopt) (2.8.0)
Requirement already satisfied: pytz>=2011k in ./anaconda3/lib/python3.7/site-packages (from pandas>=0.19->pyportfolioopt) (2018.9)
Collecting qdldl (from osqp>=0.4.1->cvxpy<2.0.0,>=1.1.10->pyportfolioopt)
Using cached https://files.pythonhosted.org/packages/ec/a3/db0e7c9fec5387dc33cbd2819329c141ba76497148aa9fab4bd1a7c2a279/qdldl-0.1.5.post0.tar.gz
Requirement already satisfied: six>=1.5 in ./anaconda3/lib/python3.7/site-packages (from python-dateutil>=2.5.0->pandas>=0.19->pyportfolioopt) (1.12.0)
Building wheels for collected packages: qdldl
Building wheel for qdldl (setup.py) ... error
Complete output from command /home/xxx/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-opaot0pp/qdldl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-8udmhpx5 --python-tag cp37:
running bdist_wheel
running build
running build_ext
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Floats are OFF
-- Long integers (64bit) are ON
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-opaot0pp/qdldl/c/build
Scanning dependencies of target qdldlobject
[ 6%] Building C object qdldl/CMakeFiles/qdldlobject.dir/src/qdldl.c.o
[ 6%] Built target qdldlobject
Scanning dependencies of target qdldlamd
[ 13%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_1.c.o
[ 20%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_2.c.o
[ 26%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_aat.c.o
[ 33%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_control.c.o
[ 40%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_defaults.c.o
[ 46%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_info.c.o
[ 53%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_order.c.o
[ 60%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_post_tree.c.o
[ 66%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_postorder.c.o
[ 73%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_preprocess.c.o
[ 80%] Building C object CMakeFiles/qdldlamd.dir/amd/src/amd_valid.c.o
[ 86%] Building C object CMakeFiles/qdldlamd.dir/amd/src/SuiteSparse_config.c.o
[ 93%] Building C object CMakeFiles/qdldlamd.dir/amd/src/perm.c.o
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘permute_x’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:23:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int j = 0 ; j < n ; j++) x[j] = b[P[j]];
^
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:23:5: note: use option -std=c99 or -std=gnu99 to compile your code
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘permutet_x’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:28:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int j = 0 ; j < n ; j++) x[P[j]] = b[j];
^
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘pinv’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:33:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int k = 0; k < n; k++) pinv[p[k]] = k; /* invert the permutation */
^
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘update_A’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:88:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int i = 0; i < Anz; i++) Apermx[AtoAperm[i]] = Anewx[i];
^
make[3]: *** [CMakeFiles/qdldlamd.dir/amd/src/perm.c.o] Error 1
make[2]: *** [CMakeFiles/qdldlamd.dir/all] Error 2
make[1]: *** [CMakeFiles/qdldlamd.dir/rule] Error 2
make: *** [qdldlamd] Error 2
building 'qdldl' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/cpp
gcc -pthread -B /home/xxx/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ic -Ic/qdldl/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/include/python3.7m -c cpp/qdldl.cpp -o build/temp.linux-x86_64-3.7/cpp/qdldl.o -O3 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -B /home/xxx/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ic -Ic/qdldl/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/include/python3.7m -c cpp/wrapper.cpp -o build/temp.linux-x86_64-3.7/cpp/wrapper.o -O3 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -B /home/xxx/anaconda3/compiler_compat -L/home/xxx/anaconda3/lib -Wl,-rpath=/home/xxx/anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cpp/qdldl.o build/temp.linux-x86_64-3.7/cpp/wrapper.o /tmp/pip-install-opaot0pp/qdldl/c/build/out/libqdldlamd.a -o build/lib.linux-x86_64-3.7/qdldl.cpython-37m-x86_64-linux-gnu.so
g++: error: /tmp/pip-install-opaot0pp/qdldl/c/build/out/libqdldlamd.a: No such file or directory
error: command 'g++' failed with exit status 1
----------------------------------------
Failed building wheel for qdldl
Running setup.py clean for qdldl
Failed to build qdldl
Installing collected packages: scs, qdldl, osqp, cvxpy, pyportfolioopt
Running setup.py install for qdldl ... error
Complete output from command /home/xxx/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-opaot0pp/qdldl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-9ev1t5fx/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
-- Floats are OFF
-- Long integers (64bit) are ON
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/pip-install-opaot0pp/qdldl/c/build
[ 6%] Built target qdldlobject
[ 13%] Building C object CMakeFiles/qdldlamd.dir/amd/src/perm.c.o
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘permute_x’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:23:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int j = 0 ; j < n ; j++) x[j] = b[P[j]];
^
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:23:5: note: use option -std=c99 or -std=gnu99 to compile your code
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘permutet_x’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:28:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int j = 0 ; j < n ; j++) x[P[j]] = b[j];
^
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘pinv’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:33:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int k = 0; k < n; k++) pinv[p[k]] = k; /* invert the permutation */
^
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c: In function ‘update_A’:
/tmp/pip-install-opaot0pp/qdldl/c/amd/src/perm.c:88:3: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (QDLDL_int i = 0; i < Anz; i++) Apermx[AtoAperm[i]] = Anewx[i];
^
make[3]: *** [CMakeFiles/qdldlamd.dir/amd/src/perm.c.o] Error 1
make[2]: *** [CMakeFiles/qdldlamd.dir/all] Error 2
make[1]: *** [CMakeFiles/qdldlamd.dir/rule] Error 2
make: *** [qdldlamd] Error 2
building 'qdldl' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/cpp
gcc -pthread -B /home/xxx/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ic -Ic/qdldl/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/include/python3.7m -c cpp/qdldl.cpp -o build/temp.linux-x86_64-3.7/cpp/qdldl.o -O3 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -B /home/xxx/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ic -Ic/qdldl/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/lib/python3.7/site-packages/pybind11/include -I/home/xxx/anaconda3/include/python3.7m -c cpp/wrapper.cpp -o build/temp.linux-x86_64-3.7/cpp/wrapper.o -O3 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -B /home/xxx/anaconda3/compiler_compat -L/home/xxx/anaconda3/lib -Wl,-rpath=/home/xxx/anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/cpp/qdldl.o build/temp.linux-x86_64-3.7/cpp/wrapper.o /tmp/pip-install-opaot0pp/qdldl/c/build/out/libqdldlamd.a -o build/lib.linux-x86_64-3.7/qdldl.cpython-37m-x86_64-linux-gnu.so
g++: error: /tmp/pip-install-opaot0pp/qdldl/c/build/out/libqdldlamd.a: No such file or directory
error: command 'g++' failed with exit status 1
----------------------------------------
Command "/home/xxx/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-opaot0pp/qdldl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-9ev1t5fx/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-opaot0pp/qdldl/
Posts: 11,568
Threads: 446
Joined: Sep 2016
Reputation:
444
I would suggest contacting the author here: [email protected] who may be able to pinpoint the problem quicker.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
Здравствуйте форумчане!
Первый раз с таким сталкиваюсь.
Пробовал переустанавливать python не помогло.
Полный текст ошибки из консоли:
(pythonparse) PS C:gitgit_practice> pip install lxml
Collecting lxml
Downloading lxml-4.9.1.tar.gz (3.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 2.0 MB/s eta 0:00:00
Preparing metadata (setup.py) … done
Installing collected packages: lxml
DEPRECATION: lxml is being installed using the legacy ‘setup.py install’ method, because it does not have a ‘pyproject.toml’ and the ‘wheel’ package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the ‘—use-pep517’ option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for lxml … error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [76 lines of output]
Building lxml version 4.9.1.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:gitgit_practicepythonparseLibsite-packagessetuptoolscommandinstall.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating buildlib.win-amd64-cpython-311
creating buildlib.win-amd64-cpython-311lxml
copying srclxmlbuilder.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlcssselect.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmldoctestcompare.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlElementInclude.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlpyclasslookup.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlsax.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlusedoctest.py -> buildlib.win-amd64-cpython-311lxml
copying srclxml_elementpath.py -> buildlib.win-amd64-cpython-311lxml
copying srclxml__init__.py -> buildlib.win-amd64-cpython-311lxml
creating buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludes__init__.py -> buildlib.win-amd64-cpython-311lxmlincludes
creating buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlbuilder.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlclean.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmldefs.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmldiff.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlElementSoup.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlformfill.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlhtml5parser.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlsoupparser.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlusedoctest.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml_diffcommand.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml_html5builder.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml_setmixin.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml__init__.py -> buildlib.win-amd64-cpython-311lxmlhtml
creating buildlib.win-amd64-cpython-311lxmlisoschematron
copying srclxmlisoschematron__init__.py -> buildlib.win-amd64-cpython-311lxmlisoschematron
copying srclxmletree.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmletree_api.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmllxml.etree.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmllxml.etree_api.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmlincludesc14n.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesconfig.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesdtdvalid.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesetreepublic.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludeshtmlparser.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesrelaxng.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesschematron.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludestree.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesuri.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxinclude.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxmlerror.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxmlparser.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxmlschema.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxpath.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxslt.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludes__init__.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesetree_defs.h -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludeslxml-version.h -> buildlib.win-amd64-cpython-311lxmlincludes
creating buildlib.win-amd64-cpython-311lxmlisoschematronresources
creating buildlib.win-amd64-cpython-311lxmlisoschematronresourcesrng
copying srclxmlisoschematronresourcesrngiso-schematron.rng -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesrng
creating buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslRNG2Schtrn.xs l -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslXSD2Schtrn.xs l -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsl
creating buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_abstract_expand.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_dsdl_include.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_message.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_skeleton_for_xslt1.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_svrl_for_xslt1.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
running build_ext
building ‘lxml.etree’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with «Microsoft C++ Build Tools»: https://visualstudio.microsoft… ild-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь
При установке sqlite3 вылезает вот такая ошибка, как пофиксить?
pip install pysqlite3
Collecting pysqlite3
Using cached pysqlite3-0.5.0.tar.gz (40 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pysqlite3
Building wheel for pysqlite3 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-cpython-311
creating buildlib.win-amd64-cpython-311pysqlite3
copying pysqlite3dbapi2.py -> buildlib.win-amd64-cpython-311pysqlite3
copying pysqlite3__init__.py -> buildlib.win-amd64-cpython-311pysqlite3
running build_ext
Builds a C extension linking against libsqlite3 library
building 'pysqlite3._sqlite3' extension
error: <b>Microsoft Visual C++ 14.0 or greater is required</b>. 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 pysqlite3
Running setup.py clean for pysqlite3
Failed to build pysqlite3
Installing collected packages: pysqlite3
Running setup.py install for pysqlite3 ... error
error: subprocess-exited-with-error
× Running setup.py install for pysqlite3 did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running install
C:GamesPythonLibsite-packagessetuptoolscommandinstall.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating buildlib.win-amd64-cpython-311
creating buildlib.win-amd64-cpython-311pysqlite3
copying pysqlite3dbapi2.py -> buildlib.win-amd64-cpython-311pysqlite3
copying pysqlite3__init__.py -> buildlib.win-amd64-cpython-311pysqlite3
running build_ext
Builds a C extension linking against libsqlite3 library
building 'pysqlite3._sqlite3' 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: legacy-install-failure
× Encountered error while trying to install package.
╰─> pysqlite3
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.