PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Monday the 29th of June, 2015

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[00:07:08] <mtwest> The macports channel recommends avoiding using pip all together, but there are some things that don’t have ports but are available via pip and I don’t have the patience to continually ask for people to make ports.
[00:10:17] <nedbat> mtwest: this is a classic battle between language-specific packagers (pip) and OS-specific packagers (yum, apt, brew, macports,etc)
[00:10:45] <mtwest> from conversation in the other room, thats definitely the case
[00:12:14] <mtwest> i have been < sudo pip install __package__ >’ing, which has been placing software in /opt/local/Library/Frameworks/Python.framework/Versions/3.4/bin
[00:12:25] <mtwest> which i have been “DONT!”
[00:14:42] <mtwest> So i’d like to know how to install to a local user space (on OSX 10.9.5)
[00:15:19] <tdsmith> pip install --user some_package will do that
[00:16:01] <mtwest> no doubt this is case of RTFD, sigh
[00:17:15] <tdsmith> i think that will put scripts in ~/.local/bin, which you'll want to add to your PATH
[00:19:49] <tdsmith> nope just kidding
[00:19:52] <tdsmith> that puts scripts in ~/Library/Python/2.7/bin
[00:20:00] <mtwest> phew
[00:20:01] <mtwest> ok
[00:20:14] <tdsmith> where "2.7" is whatever
[00:20:20] <mtwest> running 3.4 but yeah
[00:21:10] <mtwest> for some reason bash command ls is now broken but yeah
[00:21:52] <mtwest> and which
[00:23:04] <tdsmith> how are you modifying your path?
[00:23:11] <mtwest> yeah, i did something stupid to my path
[00:23:13] <mtwest> just fixed that
[00:23:27] <tdsmith> cool :)
[00:24:10] <mtwest> so i should add ~/Library/Python/3.4/bin to my PATH or PYTHONPATH
[00:24:11] <mtwest> ?
[00:31:12] <mtwest> i presume yes
[00:40:39] <tdsmith> PATH, not PYTHONPATH
[00:44:40] <mtwest> danke
[00:46:30] <mtwest> huzzah!
[04:12:38] <pyface> hey y'all. after doing: pip install Django in my virtualenv, i get this error: "Timeout: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.". i tried the command again, and it worked instantly. this has happened before. my dns settings are right and all. anyone seen that before?
[04:13:00] <pyface> no firewall
[04:13:59] <pyface> it could be many things i guess. just thought there was a chance it could be pip related
[12:20:39] <doismellburning> ...my virtualenvs end up with pip 1.5.4
[12:21:45] <doismellburning> sigh, this explains so much
[15:00:27] <magesing> Hi everyone, I'm running python 2.7 in a virtualenv, and I want to install mayavi. I've tried "pip install mayavi" and it fails with "ImportError: No module named vtk" pip install vtk does not find anything to install. How do I get vtk working in my virtualenv? Thanks.
[15:04:31] <Wooble> magesing: you probably need to install vtk yourself, since it's not on pypi.
[15:07:23] <magesing> Wooble: I have vtk installed on my system, but not in my virtualenv, how can I make my virtualenv import the system package?
[15:08:34] <Wooble> magesing: it's probably best to just install it in the virtualenv, but you can create the virtualenv with system site-packages if you must.
[15:09:48] <Wooble> (if you're on Windows, the venv's easy_install can install a .exe; otherwise just run the setup.py install with the venv's python)
[15:09:52] <magesing> Wooble: so I need to build it from source and set the installdir to /my/virtualenv/path/lib/python2.7/site-packages ?
[15:10:03] <magesing> I'm on CentOS 6
[15:11:20] <Wooble> oh, I guess it doesn't have a setup.py. Fun.
[15:12:52] <magesing> Wooble: I may have to fall-back on using my system python instead of the virtualenv, but that will bite me later when I try and bundle/ship the app.