完整的堆栈跟踪: ➜ ~ pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 215, in main locale.setlocale(locale.LC_ALL, '') File "/usr/lib64/python3.4/locale.py", line 592, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting 在同一台服务器上,我以前运行pip install virtualenv ,当时是python 2.7.x。 现在,我刚刚使用curl https://bootstrap.pypa.io/get-pip.py | python3.4安装了python3.4 curl https://bootstrap.pypa.io/get-pip.py | python3.4 curl https://bootstrap.pypa.io/get-pip.py | […]
我正在开发一个Django的应用程序,我正在使用点pipe理我的要求。 我怎么能安装一个特定的git的提交? 在我的情况下,我需要安装此提交: https : //github.com/aladagemre/django-notification/commit/2927346f4c513a217ac8ad076e494dd1adbf70e1
我正在尝试在新的virtualenv中安装matplotlib。 当我做: pip install matplotlib 要么 pip install http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/matplotlib-1.1.0.tar.gz 我得到这个错误: building 'matplotlib._png' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -fPIC – DPY_ARRAY_UNIQUE_SYMBOL=MPL_ARRAY_API -DPYCXX_ISO_CPP_LIB=1 -I/usr/local/include -I/usr/include -I. -I/home/sam/django-projects/datazone/local/lib/python2.7/site-packages/numpy/core/include -I. -I/usr/include/python2.7 -c src/_png.cpp -o build/temp.linux-x86_64-2.7/src/_png.o src/_png.cpp:10:20: fatal error: png.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 任何人有一个想法是怎么回事? […]
python setup.py install将使用easy_install自动安装easy_install requires=[]列出的软件包。 我怎样才能使用pip呢?
我已经安装并使用了Anaconda Python发行版,并且已经开始使用Anaconda(Conda)环境。 我可以使用标准的conda install…命令将分发包放到我的环境中,但是在外部使用(比如Flask-WTF,flask-sqlalchemy和alembic)我需要在主动环境中使用pip install 。 但是,当我查看环境的内容时,无论是在目录中,还是使用conda list这些pip install ed软件包都不会显示出来。 使用pip freeze和pip list只列出了我安装的每个软件包。 有没有办法跟踪我的每个Anaconda环境(安装了pip和conda )?
这里是我正在运行的命令: $ python setup.py bdist_wheel usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …] or: setup.py –help [cmd1 cmd2 …] or: setup.py –help-commands or: setup.py cmd –help error: invalid command 'bdist_wheel' $ pip –version pip 1.5.6 from /usr/local/lib/python3.4/site-packages (python 3.4) $ python -c "import setuptools; print(setuptools.__version__)" 2.1 $ python –version Python 3.4.1 $ which python /usr/local/bin/python […]
当安装pip和python时,我遇到了一个说: 目录“/ Users / Parthenon / Library / Logs / pi”或其父目录不属于当前用户,并且debugging日志已被禁用。 请检查该目录的权限和所有者。 如果用sudo执行pip,你可能需要-H标志。 因为我现在必须使用sudo进行安装。 我在我的Mac上安装了python和一些库,我正在运行Yosemite。 我最近不得不做一个干净的抹,然后重新安装操作系统。 现在我得到了这个提示,我很难找出如何改变它 在我的命令行之前, Parthenon$现在是Philips-MBP:~ Parthenon$ 我是这台电脑的唯一拥有者,这是唯一的帐户。 这似乎是一个问题,当升级到Python 3.4,似乎没有在正确的位置,virtualenv不会去我所期望的地方,等等。
执行pip install -r requirements.txt ,在安装matplotlib的阶段出现以下错误: REQUIRED DEPENDENCIES AND EXTENSIONS numpy: yes [not found. pip may install it below.] dateutil: yes [dateutil was not found. It is required for date axis support. pip/easy_install may attempt to install it after matplotlib.] tornado: yes [tornado was not found. It is required for the WebAgg backend. pip/easy_install may attempt […]
我试图在我分发的包中创build所需的库。 它需要SciPy和NumPy库。 在开发的同时,我安装了两个使用 apt-get install scipy 它安装了SciPy 0.9.0和NumPy 1.5.1,并且工作正常。 我想用pip install来做同样的事情 – 为了能够在我自己的包的setup.py中指定依赖关系。 问题是,当我尝试: pip install 'numpy==1.5.1' 它工作正常。 但是之后 pip install 'scipy==0.9.0' 悲惨地失败了 raise self.notfounderror(self.notfounderror.__doc__) numpy.distutils.system_info.BlasNotFoundError: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. 我如何得到它的工作?
我有一个使用YAML的Python程序。 我试图使用pip install yaml将其安装在新服务器上,并返回以下内容: $ sudo pip install yaml Downloading/unpacking yaml Could not find any downloads that satisfy the requirement yaml No distributions at all found for yaml Storing complete log in /home/pa/.pip/pip.log 我如何安装Python的yaml包? 我正在运行Python 2.7。