Found existing installation: matplotlib 3.1.2
Not uninstalling matplotlib at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'matplotlib'. No files were found to uninstall.
解决办法
- vidia@1:~/yolov5$ sudo apt remove python3-matplotlib
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- libjs-jquery-ui python-matplotlib-data python3-cycler python3-kiwisolver python3-pyparsing
- Use 'sudo apt autoremove' to remove them.
- The following packages will be REMOVED:
- python3-matplotlib
- 0 upgraded, 0 newly installed, 1 to remove and 191 not upgraded.
- After this operation, 13.5 MB disk space will be freed.
- Do you want to continue? [Y/n] y
- (Reading database ... 165457 files and directories currently installed.)
- Removing python3-matplotlib (3.1.2-1ubuntu4) ...
- pip3 uninstall Pillow
- Found existing installation: Pillow 7.0.0
- Not uninstalling pillow at /usr/lib/python3/dist-packages, outside environment /usr
- Can't uninstall 'Pillow'. No files were found to uninstall.
- nvidia@nvidia-desktop:~/yolov5-6.1$ sudo apt remove Pillow
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- E: Unable to locate package Pillow
- nvidia@nvidia-desktop:~/yolov5-6.1$ pip3 uninstall Pillow
- Found existing installation: Pillow 7.0.0
- Not uninstalling pillow at /usr/lib/python3/dist-packages, outside environment /usr
- Can't uninstall 'Pillow'. No files were found to uninstall.
- nvidia@nvidia-desktop:~/yolov5-6.1$ sudo apt remove python3-pil
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- apt-clone archdetect-deb bogl-bterm busybox-static cryptsetup-bin dctrl-tools dpkg-repack gdal-data gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 grub-common libaec0 libarmadillo9 libarpack2
- libavresample-dev libavresample4 libcfitsio8 libcharls2 libdap25 libdapclient6v5 libdc1394-22-dev libdebian-installer4 libepsilon1 libexif-dev libfreexl1 libfyba0 libgdal26 libgdcm-dev
- libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5 libgl2ps1.4 libgphoto2-dev libhdf4-0-alt libhdf5-103 libhdf5-openmpi-103 libilmbase-dev libimagequant0 libjbig-dev libjs-jquery-ui
- libkmlbase1 libkmldom1 libkmlengine1 liblept5 liblzma-dev libminizip1 libnetcdf-c++4 libnetcdf15 libodbc1 libogdi4.1 libopencv-calib3d4.2 libopencv-contrib4.2 libopencv-dnn4.2
- libopencv-features2d4.2 libopencv-flann4.2 libopencv-highgui4.2 libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopencv-ml4.2 libopencv-objdetect4.2 libopencv-photo4.2 libopencv-shape4.2
- libopencv-stitching4.2 libopencv-superres4.2 libopencv-video4.2 libopencv-videoio4.2 libopencv-videostab4.2 libopencv-viz4.2 libopencv4.2-java libopencv4.2-jni libopenexr-dev libpng-dev
- libpq5 libproj15 libqhull7 libraw1394-dev libsocket++1 libspatialite7 libsuperlu5 libsz2 libtesseract4 libtiff-dev libtiffxx5 libtimezonemap-data libtimezonemap1 liburiparser1 libvtk6.3
- libxerces-c3.2 odbcinst odbcinst1debian2 os-prober proj-data python-matplotlib-data python3-cycler python3-icu python3-kiwisolver python3-olefile python3-pam python3-pyparsing rdate tasksel
- tasksel-data
- Use 'sudo apt autoremove' to remove them.
- The following packages will be REMOVED:
- python3-pil
- 0 upgraded, 0 newly installed, 1 to remove and 194 not upgraded.
- After this operation, 1,520 kB disk space will be freed.
- Do you want to continue? [Y/n] y
- (Reading database ... 162128 files and directories currently installed.)
- Removing python3-pil:arm64 (7.0.0-4ubuntu0.5) ...
或者
sudo apt remove python3-pil
- ip3 uninstall requests
- Found existing installation: requests 2.22.0
- Not uninstalling requests at /usr/lib/python3/dist-packages, outside environment /usr
- Can't uninstall 'requests'. No files were found to uninstall.
- nvidia@nvidia-desktop:~/yolov5-6.1$ sudo apt remove python3-requests
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- apg apport-symptoms apt-clone apturl-common archdetect-deb avahi-utils bogl-bterm busybox-static cryptsetup-bin dctrl-tools dpkg-repack gdal-data gir1.2-goa-1.0 gir1.2-notify-0.7
- gir1.2-timezonemap-1.0 gir1.2-xkl-1.0 gnome-control-center-faces grub-common ippusbxd libaec0 libarmadillo9 libarpack2 libavresample-dev libavresample4 libcfitsio8 libcharls2 libcolord-gtk1
- libdap25 libdapclient6v5 libdc1394-22-dev libdebian-installer4 libepsilon1 libexif-dev libfreexl1 libfyba0 libgdal26 libgdcm-dev libgdcm3.0 libgeos-3.8.0 libgeos-c1v5 libgeotiff5
- libgl2ps1.4 libglu1-mesa libgphoto2-dev libgsound0 libgupnp-av-1.0-2 libgupnp-dlna-2.0-3 libhdf4-0-alt libhdf5-103 libhdf5-openmpi-103 libilmbase-dev libimagequant0 libjbig-dev
- libjs-jquery-ui libkmlbase1 libkmldom1 libkmlengine1 liblept5 liblzma-dev libminizip1 libnetcdf-c++4 libnetcdf15 libodbc1 libogdi4.1 libopencv-calib3d4.2 libopencv-contrib4.2
- libopencv-dnn4.2 libopencv-features2d4.2 libopencv-flann4.2 libopencv-highgui4.2 libopencv-imgcodecs4.2 libopencv-imgproc4.2 libopencv-ml4.2 libopencv-objdetect4.2 libopencv-photo4.2
- libopencv-shape4.2 libopencv-stitching4.2 libopencv-superres4.2 libopencv-video4.2 libopencv-videoio4.2 libopencv-videostab4.2 libopencv-viz4.2 libopencv4.2-java libopencv4.2-jni
- libopenexr-dev libpng-dev libpq5 libproj15 libqhull7 libraw1394-dev librygel-core-2.6-2 librygel-db-2.6-2 librygel-renderer-2.6-2 librygel-server-2.6-2 libsocket++1 libspatialite7
- libsuperlu5 libsz2 libtesseract4 libtiff-dev libtiffxx5 libtimezonemap-data libtimezonemap1 liburiparser1 libvtk6.3 libwhoopsie-preferences0 libxerces-c3.2 mobile-broadband-provider-info
- network-manager-gnome odbcinst odbcinst1debian2 os-prober proj-data python-matplotlib-data python3-certifi python3-cups python3-cycler python3-icu python3-kiwisolver python3-olefile
- python3-pam python3-problem-report python3-protobuf python3-pymacaroons python3-pyparsing python3-rfc3339 python3-software-properties python3-systemd rdate rygel tasksel tasksel-data
- whoopsie-preferences x11-apps x11-session-utils xinput xserver-xorg-input-all xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-amdgpu
- xserver-xorg-video-ati xserver-xorg-video-nouveau xserver-xorg-video-radeon xserver-xorg-video-vesa
- Use 'sudo apt autoremove' to remove them.
- The following packages will be REMOVED:
- apport apport-gtk apturl gnome-control-center gnome-online-accounts nautilus-share python3-apport python3-cupshelpers python3-macaroonbakery python3-requests python3-requests-unixsocket
- software-properties-common software-properties-gtk system-config-printer system-config-printer-common system-config-printer-udev ubuntu-desktop ubuntu-desktop-minimal xorg xserver-xorg
- 0 upgraded, 0 newly installed, 20 to remove and 194 not upgraded.
- After this operation, 11.8 MB disk space will be freed.
- Do you want to continue? [Y/n] y
- (Reading database ... 162017 files and directories currently installed.)
- Removing apport-gtk (2.20.11-0ubuntu27.24) ...
- Removing apport (2.20.11-0ubuntu27.24) ...
- Removing nautilus-share (0.7.3-2ubuntu3) ...
- Removing apturl (0.5.2ubuntu19) ...
- Removing ubuntu-desktop (1.450.2) ...
- Removing ubuntu-desktop-minimal (1.450.2) ...
- Removing gnome-control-center (1:3.36.5-0ubuntu4) ...
- Removing gnome-online-accounts (3.36.1-0ubuntu1) ...
- Removing xorg (1:7.7+19ubuntu14) ...
- Removing xserver-xorg (1:7.7+19ubuntu14) ...
- Removing python3-apport (2.20.11-0ubuntu27.24) ...
- Removing system-config-printer (1.5.12-0ubuntu1.1) ...
- Removing system-config-printer-udev (1.5.12-0ubuntu1.1) ...
- Removing python3-macaroonbakery (1.3.1-1) ...
- Removing system-config-printer-common (1.5.12-0ubuntu1.1) ...
- Removing software-properties-gtk (0.99.9.8) ...
- Removing software-properties-common (0.99.9.8) ...
- Removing python3-cupshelpers (1.5.12-0ubuntu1.1) ...
- Removing python3-requests-unixsocket (0.2.0-2) ...
- Removing python3-requests (2.22.0-2ubuntu1) ...
- Processing triggers for mime-support (3.64ubuntu1) ...
- Processing triggers for hicolor-icon-theme (0.17-2) ...
- Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
- Processing triggers for libglib2.0-0:arm64 (2.64.6-1~ubuntu20.04.4) ...
- Processing triggers for man-db (2.9.1-1) ...
- Processing triggers for dbus (1.12.16-2ubuntu2.2) ...
- Processing triggers for shared-mime-info (1.15-1) ...
- Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
pytorch安装步骤如上连接