其它库安装方法

查看有几个虚拟环境
conda info --envs
conda create -n p363 python==3.6.3


创建一个虚拟环境
conda create -n t1.12 python==3.6.5
anaconda3x
激活一个虚拟环境的方法
activate ten2

查看环境下面安装了哪些库
pip list
conda list

然后pip install   or  conda install 库名
pip install matplotlib
pip install sklearn
pip install scikit-image

pip install pillow
pip install pandas
pip install matplotlib pillow pandas sklearn
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple

pip config set global.trusted-host mirrors.aliyun.com

pip install numpy==1.16

pip install matplotlib==3.1.2 opencv-contrib-python==3.4.2.17 pillow sklearn scikit-image

pip install matplotlib==3.1.2 pillow sklearn scikit-image
pip3 install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple

打开jupyter

jupyter notebook


查看有几个虚拟环境
conda info --envs

查看位置
where python

python convert.py -w model_train/yolov4.weights -m model_train/yolov4.h5
python predict.py -m model_train/yolov4.h5 -i data/test.png


pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

pip config set global.trusted-host https://pypi.tuna.tsinghua.edu.cn


sudo pip3 install opencv-contrib-python==4.5.3.56 -i https://pypi.tuna.tsinghua.edu.cn/simple


pip install opencv-contrib-python==4.4.0.46


sudo apt-get install -y make wget unzip git
sudo apt-get install -y wget
sudo apt-get install -y unzip
sudo apt-get install -y git


sudo apt-get install build-essential pkg-config
 sudo apt-get install libgtk2.0-dev libgtk-3-dev libglib2.0-dev libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libv4l-dev liblapacke-dev libxvidcore-dev libx264-dev
 sudo apt-get install python-dev python-numpy
 sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
 sudo apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper1 libjasper-dev libdc1394-22-dev libopenexr-dev libwebp-dev
 sudo apt-get install libatlas-base-dev gfortran
 sudo apt-get install ffmpeg
 
posted @ 2024-08-18 11:21  莫莫大人  阅读(4)  评论(0编辑  收藏  举报