Command ‘pip‘ not found, but can be installed with:
pip install -r requirements.txt报错:
Command 'pip' not found, but can be installed with:
apt install python-pip
目前使用的是 python3,如果直接执行上面命令会安装python2.7的东西,结果还是不可用
# apt install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:libexpat1-dev libpython-all-dev libpython-dev libpython-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib python python-all python-all-dev python-asn1cryptopython-cffi-backend python-crypto python-cryptography python-dbus python-dev python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-minimal python-pip-whlpython-pkg-resources python-secretstorage python-setuptools python-six python-wheel python-xdg python2.7 python2.7-dev python2.7-minimal
Suggested packages:python-doc python-tk python-crypto-doc python-cryptography-doc python-cryptography-vectors python-dbus-dbg python-dbus-doc python-enum34-doc python-gi-cairo gnome-keyring libkf5wallet-bingir1.2-gnomekeyring-1.0 python-fs python-gdata python-keyczar python-secretstorage-doc python-setuptools-doc python2.7-doc binfmt-support
The following NEW packages will be installed:libexpat1-dev libpython-all-dev libpython-dev libpython-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib python python-all python-all-dev python-asn1cryptopython-cffi-backend python-crypto python-cryptography python-dbus python-dev python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-minimal python-pippython-pip-whl python-pkg-resources python-secretstorage python-setuptools python-six python-wheel python-xdg python2.7 python2.7-dev python2.7-minimal
0 upgraded, 35 newly installed, 0 to remove and 23 not upgraded.
Need to get 37.1 MB of archives.
After this operation, 74.2 MB of additional disk space will be used.
查询了解到如果使用的python 是python 3.4+,那就可以不用安装
我使用的是Python 3.6.9
所以可以直接使用即可
python3 -m pip
执行后如下:
# python3 -m pip install -r requirements.txt
Collecting click==7.1.2 (from -r requirements.txt (line 1))Downloading https://files.pythonhosted.org/packages/d2/3d/fa76db83bf75c4f8d338c2fd15c8d33fdd7ad23a9b5e57eb6c5de26b430e/click-7.1.2-py2.py3-none-any.whl (82kB)100% |████████████████████████████████| 92kB 172kB/s
Collecting jsonpickle==2.1.0 (from -r requirements.txt (line 2))Downloading https://files.pythonhosted.org/packages/21/55/d9f469f57ca9c8de8490d155c2d121edafade8ab7405015df0f1daf89aa1/jsonpickle-2.1.0-py2.py3-none-any.whl
Collecting veinmind==1.0.7 (from -r requirements.txt (line 3))Downloading https://files.pythonhosted.org/packages/f0/a7/48d38b0333d448645afa4641de74f74879ced60c0f0e2acfc8c0dabbca85/veinmind-1.0.7-py3-none-any.whl
Collecting importlib-metadata; python_version < "3.8" (from jsonpickle==2.1.0->-r requirements.txt (line 2))Downloading https://files.pythonhosted.org/packages/a0/a1/b153a0a4caf7a7e3f15c2cd56c7702e2cf3d89b1b359d1f1c5e59d68f4ce/importlib_metadata-4.8.3-py3-none-any.whl
Collecting zipp>=0.5 (from importlib-metadata; python_version < "3.8"->jsonpickle==2.1.0->-r requirements.txt (line 2))Downloading https://files.pythonhosted.org/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl
Collecting typing-extensions>=3.6.4; python_version < "3.8" (from importlib-metadata; python_version < "3.8"->jsonpickle==2.1.0->-r requirements.txt (line 2))Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl
Installing collected packages: click, zipp, typing-extensions, importlib-metadata, jsonpickle, veinmindFound existing installation: click 6.7Not uninstalling click at /usr/lib/python3/dist-packages, outside environment /usr
Successfully installed click-7.1.2 importlib-metadata-4.8.3 jsonpickle-2.1.0 typing-extensions-4.1.1 veinmind-1.0.7 zipp-3.6.0
OK,问题已解决
Command ‘pip‘ not found, but can be installed with:相关推荐
- Command ‘ifconfig‘ not found, but can be installed with:
Command 'ifconfig' not found, but can be installed with:
- Command ‘ifconfig‘ not found, but can be installed with: sudo apt install net-tools VM Ubuntu 解决方案
Command 'ifconfig' not found, but can be installed with: sudo apt install net-tools VM Ubuntu 解决方案 参 ...
- pip “Cannot uninstall ‘pip包‘. It is a distutils installed project...“ 解决方法
pip升级更新遇到--包已经安装更新,无法安装的错误 ERROR: Cannot uninstall 'XlsxWriter'. It is a distutils installed project ...
- Debian/Ubuntu 报错解决:Command 'ifconfig' not found, but can be installed with
我的个人博客:zhang0peter的个人博客 现在新版本的Linux已经不提供net-tools工具,自然也就找不到ifconfig命令,如果你想使用ifconfig,安装如下: zhang@ubu ...
- 使用pip安装virtualenv时出现问题
使用pip出现问题 fxd0@ubuntu:~$ sudo pip install virtualenv [sudo] password for fxd0: env: 'pip': No such f ...
- 数字公式识别的学习笔记(legacy)
3 预处理 2.2.2 (提高训练速度)2倍下采样 (为了提高训练的速度),我们遵循了原始论文的预处理,对图像进行了2倍下采样, 2.3 Label-Norm--基于语法树的标准化方法 基于Norm的 ...
- 在Ubuntu Linux终端安裝和使用ChatGPT,原来这么简单!
编辑:深度学习爱好者 人工智能已经成为新时代的感觉,让一切都显得过时.随着每天都有新的添加,我们有很多值得期待的东西. 人们使用这个多面手.无处不在的工具来开玩笑.编写代码,甚至回答最随机的问题.作为 ...
- Google框架下wallpaper_thumb制作手机壁纸缩略图攻略
AndroidM 以后,Google 架构中手机内置的壁纸都需要有相应的壁纸缩略图 一般都会按照比列去缩放:wallpaper_thumb -xhdpi 也可以指定缩略图的宽高度: wallpaper ...
- Ubuntu 18.04 + Python3.6 + CUDA-10.0 + CUDNN-7.5.0 + tensorflow-gpu-1.13.1
转自:https://blog.csdn.net/ycfn97/article/details/100084641 Install nvidia driver 首先卸载原有驱动 sudo apt-ge ...
最新文章
- Ubuntu伪分布式hadoop安装
- [python知识] 爬虫知识之BeautifulSoup库安装及简单介绍
- 建立基于以太坊的私有网络和智能合约
- ubuntu linux下建立stm32开发环境: 程序烧录 openocd+openjtag
- 使用自动伸缩组在AWS中运行安全数据库集群
- Android中SQLiteDatabase操作【附源码】
- MATLAB double、str、cell间的类型转换
- CentOS MySQL 5.7编译安装
- 如何优雅地编写Java
- -e mysql_root_password 无效_43万的价格,53万的面子!宝马5系对比奔驰E级
- tensorflow2 目标检测_BJX 系列 小型远距离检测型光电传感器代理报价
- Nginx配置https和wss
- [C++][基础]8_容器
- PHP网站开启gzip压缩,PHP开启gzip压缩的二种方法
- ryzen linux 搭配显卡,R7 1700配什么显卡?AMD Ryzen7 1700搭配显卡推荐 (全文)
- linux 队列缓冲,linux驱动的等待队列(阻塞操作)和轮询(poll),缓冲区笔记
- 布兰迪斯大学计算机美国大学排名,美国大学排名 布兰迪斯大学排名汇总
- python报错(一):takes no arguments
- 面向构件的软件设计问答
- 分布式文件系统HDFS实践及原理详解part3