PotatoNV-crossplatform
PotatoNV-crossplatform copied to clipboard
pip -r requirements.txt fails
I get an compilation error when pip install -r requirements.txt
for packages lxml and PyInquirer.
Building wheels for collected packages: lxml, PyInquirer
Building wheel for lxml (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n0onje8w/lxml_512678ab2ca948a19e12b92606be3638/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n0onje8w/lxml_512678ab2ca948a19e12b92606be3638/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-958aqi_6
cwd: /tmp/pip-install-n0onje8w/lxml_512678ab2ca948a19e12b92606be3638/
Complete output (194 lines):
...
[This part was stripped by me]
...
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n0onje8w/lxml_512678ab2ca948a19e12b92606be3638/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n0onje8w/lxml_512678ab2ca948a19e12b92606be3638/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-_h0vl5fh/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/user/.local/include/python3.10/lxml Check the logs for full command output.
my history:
1553 pip install -r requirements.txt
1554 pip install m2crypto
1555 pip install swig
1556 pip install m2crypto
1557 sudo apt-get install libssl-dev swig python3-dev gcc
probably it will work if somehow shorter.
Cannot reproduce the problem anymore. I guess I didn't use a virtual environment and it conflicted with my systems packages. Working instructions:
git clone [email protected]:masked-potatoes/PotatoNV-crossplatform.git
cd PotatoNV-crossplatform/
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt