pip

How to fix “.dist-info directory not found” in my package?

馋奶兔 提交于 2021-01-22 10:29:28
问题 I have a Python 2 package that I'm trying to upgrade to Python 3. It was written by someone who used to work on the same team I'm on now but who is no longer with the company, and unfortunately nobody left on the team is able to help out. After running 2to3 on the files of the package, I ran python setup.py sdist to create a package, placed the package in a local repository, then attempted to use pip install to install the package. It ended up erroring out with the following: Exception:

selenium+python环境搭建

随声附和 提交于 2021-01-22 09:40:37
selenium介绍: selenium1,也称为seleniumRC或者Remote Control。就是selenium的原本项目。RC是在浏览器启动后,使用js来驱动浏览器的操作。为什么叫RC呢?因为RC的设计是可以支持控制远程服务器上的selenium server来操作远程端的浏览器。 selenium2,也称为selenium webdriver。webdriver原来是另一个自动化测试工具,后与selenium 合并了。webdriver直接调用浏览器本身对自动化支持的接口来驱动浏览器的操作。故名思义,它将有不同的driver来驱动不同系统上不同的浏览器 简单说,selenium项目原本的工具是IDE、RC、grid,然后集成的一个框架。也是目前最流行的的PC B/S架构自动化测试框架。 一、安装python 链接: https://www.python.org/downloads/ 根据自己熟悉版本下载,大体上有2.X和3.X两个版本,新手建议直接入手python3,语法比python2简单易学;安装完成python的安装目录添加到环境变量,方便以后命令窗口符调试;    安装成功python会默认下载好pip和setuptools,python2可能需要另外下载(解压包然后easy_insatll 命令安装) 二、安装selenium pip install

ImportError: cannot import name 'Serial' from 'serial' (unknown location)

半世苍凉 提交于 2021-01-22 06:38:37
问题 Whenever i execute the code below it gives me following Error: ImportError: cannot import name 'Serial' from 'serial' (unknown location) Code: from serial import Serial arduinodata = Serial('com4',9600) print("Enter n to ON LED and f to OFF LED") while 1: input_data = raw_input() print ("You Entered"+input_data) if (input_data == 'n'): arduinodata.write(b'1') print("LED ON") if (input_data == 'f'): arduinodata.write(b'0') print("LED OFF") I have installed all the required python modules. Like

pip install matplotlib: “no pkg-config”

耗尽温柔 提交于 2021-01-21 13:35:31
问题 When I run pip install matplotlib (within a virtualenv), the first lines of output are: Downloading/unpacking matplotlib Running setup.py egg_info for package matplotlib basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.0 python: 2.7.3 (default, Dec 14 2012, 13:31:05) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.6.2

pip install matplotlib: “no pkg-config”

老子叫甜甜 提交于 2021-01-21 13:35:09
问题 When I run pip install matplotlib (within a virtualenv), the first lines of output are: Downloading/unpacking matplotlib Running setup.py egg_info for package matplotlib basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.0 python: 2.7.3 (default, Dec 14 2012, 13:31:05) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.6.2

pip install matplotlib: “no pkg-config”

亡梦爱人 提交于 2021-01-21 13:33:14
问题 When I run pip install matplotlib (within a virtualenv), the first lines of output are: Downloading/unpacking matplotlib Running setup.py egg_info for package matplotlib basedirlist is: ['/usr/local/', '/usr', '/usr/X11', '/opt/local'] ============================================================================ BUILDING MATPLOTLIB matplotlib: 1.2.0 python: 2.7.3 (default, Dec 14 2012, 13:31:05) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] platform: darwin REQUIRED DEPENDENCIES numpy: 1.6.2

error using pip search (pip search stopped working)

血红的双手。 提交于 2021-01-21 06:51:42
问题 I am getting this error in pip search while studying python. The picture is an error when I pip search. Can you tell me how to fix it? $ pip search pdbx ERROR: Exception: Traceback (most recent call last): File "*/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 224, in _main status = self.run(options, args) File "*/lib/python3.7/site-packages/pip/_internal/commands/search.py", line 62, in run pypi_hits = self.search(query, options) File "*/lib/python3.7/site-packages/pip/

pg4admin 401 Unauthorized Error

╄→尐↘猪︶ㄣ 提交于 2021-01-21 06:14:48
问题 I just installed the desktop version of pg4admin after having difficulty running it using my prior install. I used the following installing documentation to pull this off. However, when I run the pgadmin4 service, the page gives my the following error: Unauthorized The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required. Also, on

pip for python3.7 (Ubuntu 16.04)

十年热恋 提交于 2021-01-21 04:26:06
问题 I am not able to install pip for python 3.7. When I tried to search online, one solution I found was to install pip using get-pip.py. However, it's failing for me: sudo python3.7 get-pip.py Traceback (most recent call last): File "get-pip.py", line 21373, in <module> main() File "get-pip.py", line 197, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 82, in bootstrap import pip._internal File "/tmp/tmp3273u8va/pip.zip/pip/_internal/__init__.py", line 40, in <module> File "/tmp