pip Install中出现错误集合

pip Install中出现错误集合

      • (1)import torch ,Illegal instruction( core dumped)
      • (2)Segmentation fault (core dumped)
      • (3)Linux下所有命令失效的解决方法
      • (4)conda-build version : not installed
      • (5)The above line should NO LONGER be in your ~/.bashrc file!
      • (6)ModuleNotFoundError: No module named 'skbuild'
      • (7)pip3 install visdom
      • (8)鼠标变为十字样
      • (9) Failed building wheel for grpcio
      • (10)ERROR: Failed building wheel for scipy
      • (11)Command "python setup.py egg_info" failed with error code -11 in /tmp/pip-build-fkurb29t/pandas/
      • (12)Runtime Error : Ninja is required to load C++ extensions
      • (13)bash: /home/nano/Documents/code/pytracking/pytracking/ninja-linux.zip: Permission denied
      • (14) ImportError:libopenblas.so.0
      • (15)安装pip install visdom报错
      • (16) import serial: ModuleNotFoundError: No module named 'serial'
      • (17)[Errno 13] Permission denied: '/dev/ttyUSB0'
      • (18)Unable to locate package ros-noetic-desktop-full

(1)import torch ,Illegal instruction( core dumped)

pip Install中出现错误集合_第1张图片
解决方法

'''修改环境变量'''
sudo gedit /etc/profile 

把 export OPENBLAS_CORETYPE=ARMV8 加入最后面一行,然后保存

'''更新环境变量'''
source /etc/profile

pip Install中出现错误集合_第2张图片

(2)Segmentation fault (core dumped)

原因:
Segmentation fault (core dumped)多为内存不当操作造成。空指针、野指针的读写操作,数组越界访问,破坏常量等。如最近的势能图代码中的链表操作,对链表的新增和释放包括赋值等等,如出现不当操作都有可能造成程序崩溃。对每个指针声明后进行初始化为NULL是避免这个问题的好办法。排除此问题的最好办法则是调试

(3)Linux下所有命令失效的解决方法

bash: export: `.PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/us

解决方法:

#Linux下所有命令失效的解决方法
#解决办法:重新设置环境变量PATH
export PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/bin:/sbin

然后source /etc/profile

(4)conda-build version : not installed

解决方法: conda clean -i

(5)The above line should NO LONGER be in your ~/.bashrc file!

# 激活环境
source activate
# 退出环境
source deactivate

(6)ModuleNotFoundError: No module named ‘skbuild’

pip Install中出现错误集合_第3张图片

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple scikit-build
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple cmake
# pip install baidu-aip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

(7)pip3 install visdom

Failed cleaning build dir for scipy
pip Install中出现错误集合_第4张图片

sudo apt-get install python3-scipy
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install gfortran
sudo pip3 install visdom

(8)鼠标变为十字样

在Python操作的时候,没有输入Python命令进入到Python命令操作界面
而是直接在Terminal下面直接输入import导致鼠标被锁死变成十字
可以使用ps -e |grep import找到import进程的id
再执行命令kill -9 id 杀死进程即可

(9) Failed building wheel for grpcio

pip install --upgrade pip

(10)ERROR: Failed building wheel for scipy

sudo apt-get install python3-scipy
sudo apt-get install libblas-dev liblapack-dev
sudo apt-get install gfortran
sudo pip3 install keras

(11)Command “python setup.py egg_info” failed with error code -11 in /tmp/pip-build-fkurb29t/pandas/

#解决方法是更新 setuptools 和 pip
pip install --upgrade setuptools
python -m pip install --upgrade pip

(12)Runtime Error : Ninja is required to load C++ extensions

pip Install中出现错误集合_第5张图片
Answer:

wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip
sudo unzip ninja-linux.zip -d /usr/local/bin/
sudo update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force

(13)bash: /home/nano/Documents/code/pytracking/pytracking/ninja-linux.zip: Permission denied

chmod 777  file/file.zip

(14) ImportError:libopenblas.so.0

在这里插入图片描述
Answer:
https://pkgs.org/search/?q=libopenblas.so.0

(15)安装pip install visdom报错

在这里插入图片描述
解决方案:pip3 install packaging

(16) import serial: ModuleNotFoundError: No module named ‘serial’

在这里插入图片描述
解决方案: pip3 install pyserial

(17)[Errno 13] Permission denied: ‘/dev/ttyUSB0’

解决方案:

(method1)修改权限为可读可写可执行:

sudo chmod 777 /dev/ttyUSB0

(method2)下次重启也不用修改权限:

#通过命令查看ttyUSB0权限  
ls -l /dev/ttyUSB0
#查看dialout用户组成员
grep 'dialout' /etc/group
#查看当前用户
whoami
#当前用户加入dialout组
sudo usermod -aG dialout 用户名
make flash|重启

(18)Unable to locate package ros-noetic-desktop-full

answer:

sudo apt-get install ros-desktop-full

你可能感兴趣的:(小心前面有坑,Installl,Error)