pythonbrew

brew install python/matplotlib not working: No module named _tkinter

我们两清 提交于 2021-01-28 03:41:42
问题 I am struggling to make basic plots in matplotlib. It looks like I'm not installing tkinter correctly, which I understand should be installed from the --with-tcl-tk flag. What could be causing my error? How can I better diagnose this problem? Downloading the ActiveState tkinter has not helped me. I uninstalled then reinstalled everything I thought was relevant. No errors were raised by brew. $ brew uninstall python $ brew uninstall matplotlib numpy --force $ brew install python --with-tcl-tk

brew install python/matplotlib not working: No module named _tkinter

荒凉一梦 提交于 2021-01-28 02:15:44
问题 I am struggling to make basic plots in matplotlib. It looks like I'm not installing tkinter correctly, which I understand should be installed from the --with-tcl-tk flag. What could be causing my error? How can I better diagnose this problem? Downloading the ActiveState tkinter has not helped me. I uninstalled then reinstalled everything I thought was relevant. No errors were raised by brew. $ brew uninstall python $ brew uninstall matplotlib numpy --force $ brew install python --with-tcl-tk

'bz2 is module not available' when installing Pandas with pip in python virtual environment

喜夏-厌秋 提交于 2020-01-25 08:41:05
问题 I am going through this post Numpy, Scipy, and Pandas - Oh My!, installing some python packages, but got stuck at the line for installing Pandas: pip install -e git+https://github.com/pydata/pandas#egg=pandas I changed 'wesm' to 'pydata' for the latest version, and the only other difference to the post is that I'm using pythonbrew. I found this post, related to the error, but where is the Makefile for bz2 mentioned in the answer? Is there another way to resolve this problem? Any help would be

Using Ansible, how can I install PythonBrew system-wide?

风格不统一 提交于 2019-12-12 02:38:39
问题 I'm trying to create a playbook with Ansible (v 1.3.3) to install Pythonbrew system-wide on a Debian server following the instructions in the Pythonbrew readme file. I am able to get Pythonbrew installed but I cannot install the specific version of Python that I want with it. I suspect the issue has to do with the shell environment Ansible is running under. Here's my playbook script: - name: Install and configure PythonBrew hosts: dev user: root vars_files: - vars.yml gather_facts: false

brew install python - fails OSX

久未见 提交于 2019-12-11 13:48:12
问题 Im trying to install python through brew with: brew install python But get the following error: Stevens-MacBook-Pro :: ~ ‹master*› » brew install python ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/python-2.7. Already downloaded: /Library/Caches/Homebrew/python-2.7.8_2.mountain_lion.bottle.tar.gz ==> Pouring python-2.7.8_2.mountain_lion.bottle.tar.gz ==> Caveats Setuptools and Pip have been installed. To update them pip install --upgrade setuptools pip install -

Manage python version in different virtualenv with pythonbrew

余生颓废 提交于 2019-12-08 11:56:08
问题 My main system python version is 2.7.3. I'm trying to create a virtualenv that uses version 3.3.0. I installed pythonbrew, virtualenv and virtualenvwrapper. I followed this tutorial: http://technomilk.wordpress.com/2011/07/27/setting-up-our-django-site-environment-with-pythonbrew-and-virtualenv/ Which essentially runs pythonbrew use 3.3.0 , and then create a virtualenv. The tutorial says that the virtualenv will use the version pythonbrew uses. But it doesn't. The virtualenv uses 2.7.3 when I

pythonbrew多版本管理工具

末鹿安然 提交于 2019-12-07 10:56:56
####pythonbrew多版本管理工具 pythonbrew是一个python版本管理的工具,具体命令见 http://pythonbrew.readthedocs.org/en/latest/。 #####pythonbrew install 2.5.6 的问题 在安装python 2.5.6的时候遇到编译错误 make: *** [Modules/getbuildinfo.o] error 1 ,google了一番,参考了 http://askubuntu.com/questions/398481/make-python2-5-failed-on-ubuntu-13-04的解决方法。 在python 2.5.6下载解压后的目录 /HOME/.pythonbrew/build/Python-2.5.6 , 手动执行 SVNVERSION=not-found ./configure --prefix=/HOME/.pythonbrew/pythons/Python-2.5.6 , 把python2.5.6安装到了pythonbrew预定的目录就可以了。 #####pythonbrew管理虚拟环境 pythonbrew venv init pythonbrew venv create proj -p x.x.x 以上2步就创建了一个可用的虚拟环境,然后到需要环境的工程,执行

import zlib ImportError: No module named zlib [duplicate]

社会主义新天地 提交于 2019-12-06 05:28:56
问题 This question already has answers here : no module named zlib (8 answers) Closed last year . # pythonbrew venv create django1.5 Creating `django1.5` environment into /usr/local/pythonbrew/venvs/Python-2.7.3 Traceback (most recent call last): File "/usr/local/pythonbrew/etc/virtualenv/virtualenv.py", line 19, in <module> import zlib ImportError: No module named zlib What should I do?? I want to import zlib. And I aready install zlib * # rpm -qa |grep zlib zlib-1.2.5-7.fc17.i686 zlib-devel-1.2

python: what's the difference between pythonbrew and virtualenv?

半腔热情 提交于 2019-12-03 03:32:43
问题 I am new to python and I am planning to learn django. I had a bit of experience with ruby (not rails) and I am familiar with RVM however I don't understand the difference between pythonbrew and virtualenv . I know pythonbrew is a mimic of RVM but I thought virtualenv is already doing what RVM does (or vice versa that pythonbrew is already doing what RVM does). Can someone please explain and perhaps provide some concrete examples/usages to help me understand it. Thanks very much! 回答1:

django开发环境部署(二)——python版本控制器pyenv

≯℡__Kan透↙ 提交于 2019-12-03 03:20:19
python版本控制器pyenv 之前的那篇是说明了django环境的site package完全独立出来了,但是使用的python解释器还是系统的,为了继续独立出来,甚至是达到ruby的rvm的自由切换解释器版本,那样不更好,日后线上升级python版本的时候直接再本地切换版本来运行当前代码测试岂不快哉,其实本篇已经不能算django开发环境了,是python开发环境部署 在上篇的基础上,继续进行解释器的版本管理器的安装,这里我使用的时pyenv,另外一个管理器是pythonbrew,还有一个pythonz,至于为什么选择pyenv,pythonbrew的GitHub主页上给出了解释如下 英文翻译水平太烂,只能搬原文 Deprecated This project is no longer under active development. You are encouraged to try out pyenv instead. 为什么选用pyenv Depend on Python itself . pyenv was made from pure shell scripts. There is no bootstrap problem of Python. Need to be loaded into your shell . Instead, pyenv's shim