Installing Python packages from local file system folder with pip

Is it possible to install packages using pip from the local filesystem? I have run python setup.py sdist for my package, which has created the appropriate tar.gz file. This file is stored on my system at /srv/pkg/mypackage/mypackage-0.1.0.tar.gz . Now in a virtual environment I would like to install packages either coming from pypi or from the specific local location /srv/pkg . Is this pos

用pip从本地文件系统文件夹安装Python包

是否可以使用来自本地文件系统的pip安装软件包? 我已经为我的包运行了python setup.py sdist ,它已经创建了相应的tar.gz文件。 该文件存储在我的系统上/srv/pkg/mypackage/mypackage-0.1.0.tar.gz 。 现在在虚拟环境中,我想安装来自pypi或来自特定本地位置/srv/pkg软件包。 这可能吗? PS我知道我可以指定pip install /srv/pkg/mypackage/mypackage-0.1.0.tar.gz 。 这将起作用,但我正在讨论如何使用/srv/pkg位置

Listing installed python site

This question already has an answer here: How can I get a list of locally installed Python modules? 18 answers Check out yolk. Yolk is a Python command-line tool and library for obtaining information about packages installed by setuptools, easy_install and distutils (Python 2.5) and for querying PyPI (Python Package Index aka The Cheese Shop). pip is the one for the job, as it is a tool

列出已安装的python站点

这个问题在这里已经有了答案: 我如何获得本地安装的Python模块列表? 18个答案 检出蛋黄。 Yolk是一个Python命令行工具和库,用于获取由setuptools,easy_install和distutils(Python 2.5)安装的软件包以及查询PyPI(Python Package Index又名The Cheese Shop)的信息。 pip是工作的一部分,因为它是安装和管理Python包的工具。 安装完成后,您必须执行: pip freeze 这将以pips需求格式输出软件包和版本信息(稍

virtualenv

I was under the impression that virtualenv --no-site-packages would create a completely separate and isolated Python environment, but it doesn't seem to. For example, I have python-django installed globally, but wish to create a virtualenv with a different Django version. $ virtualenv --no-site-packages foo New python executable in foo/bin/python Installing setuptools............don

的virtualenv

我的印象是,virtualenv - no-site-packages会创建一个完全独立的,孤立的Python环境,但似乎并非如此。 例如,我在全局安装了python-django,但希望使用不同的Django版本创建virtualenv。 $ virtualenv --no-site-packages foo New python executable in foo/bin/python Installing setuptools............done. $ pip -E foo install Django Requirement already satisfied: Django in /usr/share/pyshared Install

How to install a specific version of a package with pip?

Possible Duplicate: Installing specific package versions with Pip I am a bit new to pip install and virtualenv in general. I have setup an virtualenv on my server as well as on my local dev environment. On the server the package django_modeltranslation-0.4.0_beta2 works perfectly fine. However on my local machine django_modeltranslation-0.5.0-alpha doesn't seem to work well at all.

如何使用pip安装特定版本的软件包?

可能重复: 用Pip安装特定的软件包版本 一般来说,我对pip install和virtualenv有点新。 我在我的服务器以及本地开发环境中设置了virtualenv。 在服务器上,包django_modeltranslation-0.4.0_beta2可以很好地工作。 但是在我的本地机器上, django_modeltranslation-0.5.0-alpha似乎并不能很好地工作。 我通常只需将它安装在virtual-env中,如下所示: $ source bin/active (env)$ pip install django_modeltranslat

python 1.2.2 (Mac OS 10.6 Snow Leopard)

I'm trying to install MySQL_python 1.2.2 (I specifically need this version, not the current 1.2.3) on Snow Leopard, and getting this error below. Command to install: pip install -Iv http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.tar.gz/download And a portion of the trace: copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.6-universal-2

python 1.2.2(Mac OS 10.6 Snow Leopard)

我试图在Snow Leopard上安装MySQL_python 1.2.2(我特别需要这个版本,而不是当前的1.2.3),并在下面得到这个错误。 要安装的命令: pip install -Iv http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.tar.gz/download 还有一部分痕迹: copying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.6-universal-2.6/MySQLdb/constants running build_ext building '_mysq

"no module named django.core.management"

I get the following error when trying to run Django from the command line. File manage.py, line 8, in <module>      from django.core.management import execute_from_command_line ImportError: No module named django.core.management Any ideas on how to solve this? It sounds like you do not have django installed. You should check the directory produced by this command: python -c "from dist

“没有名为django.core.management的模块”

尝试从命令行运行Django时出现以下错误。 File manage.py, line 8, in <module>      from django.core.management import execute_from_command_line ImportError: No module named django.core.management 有关如何解决这个问题的任何想法? 这听起来像你没有安装django。 你应该检查这个命令产生的目录: python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" 看看你是否有djan

How do I install Python packages on Windows?

I'm having a hard time setting up python packages. EasyInstall from SetupTools is supposed to help that, but they don't have an executable for Python 2.6. For instance to install Mechanize, I'm just supposed to put the Mechanize folder in C:Python24Libsite-packages according to INSTALL.txt, but runnning the tests does not work. Can someone help shed some light on this? Thanks!

我如何在Windows上安装Python软件包?

我很难设置Python包。 来自SetupTools的EasyInstall应该可以提供帮助,但是它们没有Python 2.6的可执行文件。 例如要安装Mechanize,我只是应该根据INSTALL.txt将Mechanize文件夹放在C: Python24 Lib site-packages中,但是运行测试不起作用。 有人可以帮助解释这一点吗? 谢谢! 接受的答案已过时。 所以首先, pip优于easy_install ,(为什么使用pip over easy_install?)。 然后按照这些步骤在Windows上安装pip

Adding Python Path on Windows 7

I've been trying to add the Python path to the command line on Windows 7, yet no matter the method I try, nothing seems to work. I've used the set command, I've tried adding it through the Edit Environment variables prompt etc. Further more if I run the set command on the command line it lists this python = c:python27 Yet it still doesn't recognize the Python command. Readi

在Windows 7上添加Python路径

我一直试图在Windows 7上将命令行添加到Python路径中,但无论我尝试的方法如何,似乎都没有任何效果。 我使用了set命令,我试图通过编辑环境变量提示等来添加它。 更进一步,如果我在命令行上运行set命令,它会列出它 python = c:python27 但它仍然不能识别Python命令。 阅读文档和各种其他来源似乎没有帮助。 编辑:为了进一步阐明,我在编辑环境提示中将Python可执行文件的路径附加到PATH。 似乎没有工作。 保持胜

How do I install a Python package with a .whl file?

I'm having trouble installing a Python package (specifically, JPype1 0.5.7) on my Windows machine, and would like to install it with Christoph Gohlke's Window binaries. (Which, to my experience, alleviated much of the fuss for many other package installations.) However, while Christoph used to provide .exe files in the past, recently it seems he's uploading .whl files instead. ht

如何安装带有.whl文件的Python包?

我在Windows机器上安装Python软件包(特别是JPype1 0.5.7)时遇到问题,并希望将它与Christoph Gohlke的Window二进制文件一起安装。 (就我的经验而言,这减轻了许多其他软件包安装中的麻烦。) 然而,尽管Christoph过去曾经提供.exe文件,但最近似乎他正在上传.whl文件。 http://www.lfd.uci.edu/~gohlke/pythonlibs/#jpype 但是,我如何安装.whl文件? 笔记: 我已经在wheel上找到了文档,但是他们在解释如何安装.w

Trying to pip install django

This question already has an answer here: How do I install pip on Windows? 35 answers 'pip' is not recognized as an internal or external command 23 answers

尝试点击安装Django

这个问题在这里已经有了答案: 我如何在Windows上安装点子? 35个答案 '点'不被识别为内部或外部命令23的答案