pip

Pip error -> ImportError: No module named helpers

白昼怎懂夜的黑 提交于 2020-08-03 11:11:32
问题 When I'm trying to install any package using pip it gives an error. It shows "ImportError: No module named helpers" . I tried installing the helpers module using pip but the same error occurred. I'm pasting the output of the error message. Operating System: Arch Linux. pip2 install requests Error : Traceback (most recent call last): File "/usr/bin/pip2", line 11, in <module> load_entry_point('pip==18.1', 'console_scripts', 'pip')() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__

Could not find a version that satisfies the requirement pkg-resources==0.0.0

浪尽此生 提交于 2020-07-31 16:39:10
问题 My app is deployed on heroku . When I push my code via git push heroku master . It gives me this error Collecting pkg-resources==0.0.0 (from -r requirements.txt (line 14)) remote: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r requirements.txt (line 14)) (from versions: ) remote: No matching distribution found for pkg-resources==0.0.0 (from -r requirements.txt (line 14)) remote: ! Push rejected, failed to compile Python app. requirement.txt amqp==2.1.1

Could not find a version that satisfies the requirement pkg-resources==0.0.0

 ̄綄美尐妖づ 提交于 2020-07-31 16:38:27
问题 My app is deployed on heroku . When I push my code via git push heroku master . It gives me this error Collecting pkg-resources==0.0.0 (from -r requirements.txt (line 14)) remote: Could not find a version that satisfies the requirement pkg-resources==0.0.0 (from -r requirements.txt (line 14)) (from versions: ) remote: No matching distribution found for pkg-resources==0.0.0 (from -r requirements.txt (line 14)) remote: ! Push rejected, failed to compile Python app. requirement.txt amqp==2.1.1

What does the “-U” option stand for in pip install -U

断了今生、忘了曾经 提交于 2020-07-31 06:19:47
问题 Despite a ton of Googling, I can't find any docs for pip's command line options/arguments. What does pip install -U mean? Does anyone have a link to a list of pip's options and arguments? 回答1: Type pip install -h to list help: -U, --upgrade Upgrade all packages to the newest available version So, if you already have a package installed, it will upgrade the package for you. Without the -U switch it'll tell you the package is already installed and exit. Each pip subcommand has its own help

Python MariaDB pip install failed, missing mariadb_config

谁说胖子不能爱 提交于 2020-07-31 05:58:07
问题 I am using Linux Ubuntu 18.04 and python 3. I am trying to build a connection between a maria-db and my python scripts. Therefore I have to install the mariadb package. I have already installed: sudo apt install mariadb-server But when i try: pip install mariadb I get following error: Collecting mariadb Using cached mariadb-1.0.0.tar.gz (78 kB) ERROR: Command errored out with exit status 1: command: /home/niklas/Desktop/Stuff/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] =

How does PIP determine the version of a dependency of multiple dependents

最后都变了- 提交于 2020-07-31 03:46:27
问题 Let's assume we have the following dependency tree in Python using PIP as package installer: A==1.2.1: | - B==1.5.4 | - C==?.?.? D==1.3.0: | - C==?.?.? Let's also assume that the existing versions of package C are the followings: - 0.0.8 - 1.0.2 As we know, PIP will not install different versions of the same package into an environment. Which means it has to pick one suitable version for all dependents. What I simply cannot understand how PIP determines the suitable version. If package A

How does PIP determine the version of a dependency of multiple dependents

99封情书 提交于 2020-07-31 03:46:27
问题 Let's assume we have the following dependency tree in Python using PIP as package installer: A==1.2.1: | - B==1.5.4 | - C==?.?.? D==1.3.0: | - C==?.?.? Let's also assume that the existing versions of package C are the followings: - 0.0.8 - 1.0.2 As we know, PIP will not install different versions of the same package into an environment. Which means it has to pick one suitable version for all dependents. What I simply cannot understand how PIP determines the suitable version. If package A

Why is my venv using a different pip version than I have installed

别等时光非礼了梦想. 提交于 2020-07-30 05:45:19
问题 I'm setting up virtual env. I was getting warnings about an outdated pip (19.2) so I updated pip on my (macos) system globally, sudo -H python3 -m pip install --upgrade pip . It seems to have worked, but when I make a new venv, I'm still getting the old pip version. % pip --version pip 20.1 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8) % python3 -m pip --version pip 20.1 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8

Why is my venv using a different pip version than I have installed

时光毁灭记忆、已成空白 提交于 2020-07-30 05:42:06
问题 I'm setting up virtual env. I was getting warnings about an outdated pip (19.2) so I updated pip on my (macos) system globally, sudo -H python3 -m pip install --upgrade pip . It seems to have worked, but when I make a new venv, I'm still getting the old pip version. % pip --version pip 20.1 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip (python 3.8) % python3 -m pip --version pip 20.1 from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8

自从学会了Python自动化Pytest框架,领导再也不敢在我背后指手划脚了

ぐ巨炮叔叔 提交于 2020-07-29 10:28:19
前言 大家都知道Python有自带的单元测试框架unittest,那为什么还要学习Pytest呢?先了解下Pytest优点 pytest: pytest是一个非常成熟的全功能的Python测试框架,是unittest框架的扩展,主要特点有以下几点: 1、简单灵活,非常方便的组织自动化测试用例; 2、支持参数化,可以细粒度地控制要测试的测试用例; 3、能够支持简单的单元测试和复杂的功能测试,比如web端selenium/移动端appnium等自动化测试、request接口自动化测试 4、pytest具有很多第三方插件,并且可以自定义扩展,比如测试报告生成,失败重运行机制 5、测试用例的skip和fail处理; 6、结合业界最美的测试报告allure+Jenkins,持续集成 selenium : 基于 JavaScript 代码库的自动化测试框架,通过脚本语言,模拟用户行为操作,最接近用户真实场景,实现对 web 自动测试。 Selenium ,是目前的最火爆企业最主流的 webUI 自动化框架 环境搭建 pip install -U pytest pytest-xdist # 多线程 pip install -U pytest-rerunfailures # 重试运行 cases pip install pytest-html # 生成测试报告 pytest --version #