在Jetson的虚拟环境中安装scipy的问题

 问题如下:

(tf2) cpt@cie-jetson:~/jm/envs$ pip install PEP517
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting PEP517
  Downloading https://mirrors.aliyun.com/pypi/packages/43/f6/4af3567c136e8e1620f6fcff665f9a478e68d06f9c990d0f2717cf9a2b8c/pep517-0.8.2-py2.py3-none-any.whl (18 kB)
Collecting zipp; python_version < "3.8"
  Downloading https://mirrors.aliyun.com/pypi/packages/b2/34/bfcb43cc0ba81f527bc4f40ef41ba2ff4080e047acb0586b56b3d017ace4/zipp-3.1.0-py3-none-any.whl (4.9 kB)
Collecting toml
  Downloading https://mirrors.aliyun.com/pypi/packages/9f/e1/1b40b80f2e1663a6b9f497123c11d7d988c0919abbf3c3f2688e448c5363/toml-0.10.1-py2.py3-none-any.whl (19 kB)
Collecting importlib_metadata; python_version < "3.8"
  Downloading https://mirrors.aliyun.com/pypi/packages/98/13/a1d703ec396ade42c1d33df0e1cb691a28b7c08b336a5683912c87e04cd7/importlib_metadata-1.6.1-py2.py3-none-any.whl (31 kB)
Installing collected packages: zipp, toml, importlib-metadata, PEP517
Successfully installed PEP517-0.8.2 importlib-metadata-1.6.1 toml-0.10.1 zipp-3.1.0

(tf2) cpt@cie-jetson:~/jm/envs$ pip install scipy==1.4.1
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting scipy==1.4.1
  Using cached https://mirrors.aliyun.com/pypi/packages/04/ab/e2eb3e3f90b9363040a3d885ccc5c79fe20c5b8a3caa8fe3bf47ff653260/scipy-1.4.1.tar.gz (24.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: scipy
  WARNING: Building wheel for scipy failed: [Errno 13] Permission denied: '/home/cpt/.cache/pip/wheels/fe'
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

解决方法:

复制系统自带的scipy

cp -r /usr/local/lib/python3.6/dist-packages/scipy ~/envs/tf2/lib64/python3.6/site-packages/scipy

cp -r /usr/local/lib/python3.6/dist-packages/scipy-1.4.1.dist-info ~/envs/tf2/lib64/python3.6/site-packages/scipy-1.4.1.dist-info

 

你可能感兴趣的:(在Jetson的虚拟环境中安装scipy的问题)