Caleb Messerly Posted April 29 Share Posted April 29 Hello Digilent Forums, I am trying to run an SKLearn Neural Network on my ADP3450 in Linux Mode. As a part of this, I have to install a number of dependencies. They are listed below in a requirements.txt file: Requirements.txt: joblib==1.3.2 numpy==1.21.6 scikit-learn==1.0.2 scipy==1.7.3 threadpoolctl==3.1.0 Upon running pip3 install -r requirements.txt, I get the following error: pip._internal.exceptions.InstallationError: Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7xsu875a/scipy/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-6dve2a0v/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-d9o4gjkq --compile" failed with error code 1 in /tmp/pip-install-7xsu875a/scipy/ error Cleaning up... Removing source in /tmp/pip-install-kzj45cwn/scikit-learn Removed scikit-learn==1.0.2 from https://files.pythonhosted.org/packages/75/44/074b780d8ac0b0899937e9b8ba6d5d8873a71b99aa915219251ef85a8890/scikit-learn-1.0.2.tar.gz#sha256=b5870959a5484b614f26d31ca4c17524b1b0317522199dc985c3b4256e030767 (from -r requirements.txt (line 3)) from build tracker '/tmp/pip-req-tracker-7r3uuu9v' Removed build tracker '/tmp/pip-req-tracker-7r3uuu9v' Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-d9o4gjkq --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools<60.0 wheel Cython>=0.28.5 "oldest-supported-numpy; python_version!='3.7' or platform_machine=='aarch64' or platform_system=='AIX' or platform_python_implementation == 'PyPy'" "numpy==1.14.6; python_version=='3.7' and platform_machine!='aarch64' and platform_system!='AIX' and platform_python_implementation != 'PyPy'" scipy>=1.1.0" failed with error code 1 in None Exception information: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 338, in run resolver.resolve(requirement_set) File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 102, in resolve self._resolve_one(requirement_set, req) File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 256, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for self.require_hashes File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 298, in prepare_linked_requirement abstract_dist.prep_for_dist(finder, self.build_isolation) File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 109, in prep_for_dist "Installing build dependencies" File "/usr/lib/python3/dist-packages/pip/_internal/build_env.py", line 122, in install_requirements call_subprocess(args, show_stdout=False, spinner=spinner) File "/usr/lib/python3/dist-packages/pip/_internal/utils/misc.py", line 723, in call_subprocess % (command_desc, proc.returncode, cwd)) pip._internal.exceptions.InstallationError: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-d9o4gjkq --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools<60.0 wheel Cython>=0.28.5 "oldest-supported-numpy; python_version!='3.7' or platform_machine=='aarch64' or platform_system=='AIX' or platform_python_implementation == 'PyPy'" "numpy==1.14.6; python_version=='3.7' and platform_machine!='aarch64' and platform_system!='AIX' and platform_python_implementation != 'PyPy'" scipy>=1.1.0" failed with error code 1 in None Has anyone tried to download dependencies like this on their machine? Have they run into similar errors? Link to comment Share on other sites More sharing options...
Question
Caleb Messerly
Hello Digilent Forums,
I am trying to run an SKLearn Neural Network on my ADP3450 in Linux Mode. As a part of this, I have to install a number of dependencies. They are listed below in a requirements.txt file:
Requirements.txt:
joblib==1.3.2 numpy==1.21.6 scikit-learn==1.0.2 scipy==1.7.3 threadpoolctl==3.1.0
Upon running pip3 install -r requirements.txt, I get the following error:
pip._internal.exceptions.InstallationError: Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-7xsu875a/scipy/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-6dve2a0v/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-d9o4gjkq --compile" failed with error code 1 in /tmp/pip-install-7xsu875a/scipy/ error Cleaning up... Removing source in /tmp/pip-install-kzj45cwn/scikit-learn Removed scikit-learn==1.0.2 from https://files.pythonhosted.org/packages/75/44/074b780d8ac0b0899937e9b8ba6d5d8873a71b99aa915219251ef85a8890/scikit-learn-1.0.2.tar.gz#sha256=b5870959a5484b614f26d31ca4c17524b1b0317522199dc985c3b4256e030767 (from -r requirements.txt (line 3)) from build tracker '/tmp/pip-req-tracker-7r3uuu9v' Removed build tracker '/tmp/pip-req-tracker-7r3uuu9v' Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-d9o4gjkq --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools<60.0 wheel Cython>=0.28.5 "oldest-supported-numpy; python_version!='3.7' or platform_machine=='aarch64' or platform_system=='AIX' or platform_python_implementation == 'PyPy'" "numpy==1.14.6; python_version=='3.7' and platform_machine!='aarch64' and platform_system!='AIX' and platform_python_implementation != 'PyPy'" scipy>=1.1.0" failed with error code 1 in None Exception information: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main status = self.run(options, args) File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 338, in run resolver.resolve(requirement_set) File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 102, in resolve self._resolve_one(requirement_set, req) File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 256, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for self.require_hashes File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 298, in prepare_linked_requirement abstract_dist.prep_for_dist(finder, self.build_isolation) File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 109, in prep_for_dist "Installing build dependencies" File "/usr/lib/python3/dist-packages/pip/_internal/build_env.py", line 122, in install_requirements call_subprocess(args, show_stdout=False, spinner=spinner) File "/usr/lib/python3/dist-packages/pip/_internal/utils/misc.py", line 723, in call_subprocess % (command_desc, proc.returncode, cwd)) pip._internal.exceptions.InstallationError: Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-d9o4gjkq --no-warn-script-location -v --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools<60.0 wheel Cython>=0.28.5 "oldest-supported-numpy; python_version!='3.7' or platform_machine=='aarch64' or platform_system=='AIX' or platform_python_implementation == 'PyPy'" "numpy==1.14.6; python_version=='3.7' and platform_machine!='aarch64' and platform_system!='AIX' and platform_python_implementation != 'PyPy'" scipy>=1.1.0" failed with error code 1 in None
Has anyone tried to download dependencies like this on their machine? Have they run into similar errors?
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now