Questions tagged «pip»

用于有关Python软件包安装程序的问题

7
python pip指定库目录和包含目录
我正在使用pip并尝试安装一个名为pyodbc的python模块,该模块对非Python库(例如unixodbc-dev,unixodbc-bin,unixodbc)具有某些依赖性。目前,我只能在玩游戏,因此无法在整个系统上安装这些依赖项,因此我将它们安装在非标准位置。如何告诉pip在哪里寻找这些依赖项?更确切地说,如何在构建pyodbc扩展时通过包含dirs(gcc -I)和库dirs(gcc -L -l)的点传递信息?


22
Zsh:找不到Conda / Pip安装命令
因此,我安装了Anaconda,一切正常。安装后,我决定切换到oh-my-zsh。我现在得到: zsh: command not found: conda 尝试使用pip或conda安装时 echo $ZSH_VERSION 5.0.5 我已添加到我的 zshenv.sh export PATH ="/Users/Dz/anaconda/bin:$PATH" 我想念的是什么?
74 python  pip  zsh  conda 


5
lxml安装错误ubuntu 14.04(内部编译器错误)
我在安装时遇到问题lxml。我已经在本网站和其他网站上尝试了相关问题的解决方案,但无法解决问题。需要一些建议/解决方案。 执行后pip install lxml,我将提供完整的日志, Downloading/unpacking lxml Downloading lxml-3.3.5.tar.gz (3.5MB): 3.5MB downloaded Running setup.py (path:/tmp/pip_build_root/lxml/setup.py) egg_info for package lxml /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.3.5. Building without Cython. Using build configuration of libxslt 1.1.28 warning: no previously-included files found matching '*.py' Installing collected packages: lxml Running …

12
Windows上的pip给出错误-未知或不受支持的命令“安装”
我通过下载http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49并运行在Windows上安装了pippython setup.py install 安装顺利,没有错误。 但是,当我尝试使用它安装selenium软件包时,它给了我以下错误- pip install -U selenium Unknown option: u Unknown or unsupported command 'install' 我在哪里犯错?
71 python  pip 

6
pip install pygraphviz:找不到软件包“ libcgraph”
我成功安装graphviz并cgraph与 $ sudo pip install graphviz .... Successfully installed graphviz-0.5.1 $ sudo pip install cgraph ... Successfully installed cgraph-0.1 我No package 'libcgraph' found在跑步时遇到问题sudo pip install pygraphviz。以下是完整的堆栈跟踪。 $ sudo pip install pygraphviz The directory '/Users/sparkandshine/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been …

9
在无法调用更新错误“模块”对象后,pip不再起作用
点更新后,点已完全停止工作。 Z:\>pip install matplotlib Traceback (most recent call last): File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\program files\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files\Python37\Scripts\pip.exe\__main__.py", line 9, in <module> TypeError: 'module' object is not callable 有什么帮助吗? 编辑:我正在Windows 10

4
使用virtualenv或buildout安装PIL的问题
当我使用easy_install或buildout安装PIL时,其安装方式必须是“导入映像”,而不是“从PIL导入映像”。 但是,如果我执行“ apt-get install python-imaging”或使用“ pip -E test_pil install PIL”,则一切正常。 以下是我如何尝试使用virtualenv安装PIL的示例: # virtualenv --no-site-packages test_pil # test_pil/bin/easy_install PIL # test_pil/bin/python Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PIL Traceback (most recent …

3
如何在ubuntu上安装加密技术?
我的Ubuntu版本是14.04 LTS。 当我安装密码术时,错误是: Installing egg-scripts. uses namespace packages but the distribution does not require setuptools. Getting distribution for 'cryptography==0.2.1'. no previously-included directories found matching 'documentation/_build' zip_safe flag not set; analyzing archive contents... six: module references __path__ Installed /tmp/easy_install-oUz7ei/cryptography-0.2.1/.eggs/six-1.10.0-py2.7.egg Searching for cffi>=0.8 Reading https://pypi.python.org/simple/cffi/ Best match: cffi 1.5.0 Downloading https://pypi.python.org/packages/source/c/cffi/cffi-1.5.0.tar.gz#md5=dec8441e67880494ee881305059af656 Processing …

10
OS X 10.8升级后Python点破
升级到Mac OS X 10.8(Mountain Lion),并在尝试致电时出现以下错误$ pip: Traceback (most recent call last): File "/usr/local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module> working_set.require(__requires__) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require needed = self.resolve(parse_requirements(requirements)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve raise DistributionNotFound(req) # XXX put more info …
69 python  macos  pip 

2
Python:如何编辑已安装的软件包?
我通过安装了一些软件包pip install something。我想编辑包的源代码something。它在哪里(在ubuntu 12.04上),并且每次编辑源代码并运行它时如何重新加载它? 目前,我正在编辑源代码,然后一次又一次地运行python setup.py,事实证明这很麻烦。
69 python  pip 

18
PIP安装Numpy引发错误“ ascii编解码器无法解码字节0xe2”
我在新构建的计算机上全新安装了Ubuntu。我刚刚使用apt-get安装了python-pip。现在,当我尝试点安装Numpy和Pandas时,出现以下错误。 我已经在SO和Google的很多地方看到过提到此错误,但是我找不到解决方案。有人提到这是一个错误,有些线程已经死了……这是怎么回事? Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> load_entry_point('pip==1.5.4', 'console_scripts', 'pip')() File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main return command.main(cmd_args) File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 72: ordinal not in range(128)
67 python  numpy  pandas  pip 

5
pip3“ TypeError:'模块'对象不可调用”更新后
我是Python新手,我想在控制台中安装Jupyter Notebook,然后输入以下内容: pip3 install --upgrade pip 之后,我在使用pip3安装其他库时出错,控制台输出: File "/usr/bin/pip3", line 11, in <module> sys.exit(main()) TypeError: 'module' object is not callable 我不知道该怎么办。 我用完sudo autoremove python3-pip之后sudo apt install python3-pip
42 python  ubuntu  pip 

6
如何以编程方式检查python软件包是否为最新版本?
如何在脚本中以编程方式检查软件包的最新版本,并返回true或false? 我可以使用以下脚本进行检查: package='gekko' import pip if hasattr(pip, 'main'): from pip import main as pipmain else: from pip._internal import main as pipmain pipmain(['search','gekko']) 或使用命令行: (base) C:\User>pip search gekko gekko (0.2.3) - Machine learning and optimization for dynamic systems INSTALLED: 0.2.3 (latest) 但是,如何以编程方式检查并返回true或false?
29 python  pip  gekko 

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.