-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python 3 support #23
Comments
This didn't happen. I'd still like to do it, but since we are close to the start of the season, it will have to remain Python 2 compatible to avoid major disruptions during the season. Thankfully, |
I'm curious if @BurntSushi or @ochawkeye were able to install the dependencies for At the same time, I'm too stubborn to uninstall 3.3 and have 2.7 be my default Python version, since I have 3.3-based projects. I feel like the pip package manager will be all messed up too if I go that route. Any thoughts on how I can resolve this? Just wish that Python 2 and 3 can just get along :( |
@albertlyu It has been years since I haven't been on a system with only one version of Python. (My current system has 2.6, 2.7, 3.3 and 3.4 I think. Blech.) Anyway, the versions are all pretty distinct. If you're running into version problems, it's usually because you're using Python X tools to install Python Y libraries. For example, you're probably trying to use Now that I say this though, it occurs to me that you probably can't install |
I've already tried What I probably need to do is trick the installer into thinking that Python 2.7 is my primary Python version without uninstalling Python 3.3. I'm sure there's a way to manage the default python version? Such that when I type |
Also, I set up my environment variables and Path to search C:\Python27;C:\Python27\Scripts instead of the Python 3.3 directories. I thought that might help? It may or may not. |
Changing your environment The link seems to imply that the "default" Python version is stored in the registry somewhere. Blech. Which means changing the More Googling. I found this: 32 bit:
64 bit:
|
It looks like the links to the GitHub project branches are out of date. https://github.com/nwcell/psycopg2-windows.git@win32-py27#egg=psycopg2 I'm going to try to figure out how to pip install the 64-bit, Python 2.7 version of that project. |
@albertlyu Did you actually try those commands? Note that it is using |
Yup I did, sorry, I should have listed what I did. I tried the commands for the 64-bit version, and here's the output: However, this is all I see in the site-packages directory of that package: And trying to run So my assumption was that if I couldn't access the URL via |
BTW if I go up a level to the I read a bit more of the |
If something works in a virtualenv then it has to work with regular pip too. In any case, this page looks promising too. Note that you do not run the executable like normal! Instead, it wants you to use |
Naive question - is there anything that gets registered in the Windows world when a package gets installed from pip, or is this as simple as me zipping up my Obviously future updates would probably not be available through |
@ochawkeye Interesting question. Definitely not naive. In the Linux world, I imagine that would work as long as we were using machines on the same architecture. It's worth a shot. |
There's the rub. I'm using 32, he's using 64... We're in luck - I've got a virgin Lenovo laptop for test purposes. I've got to get it through Windows OOBE, but should be able to get @albertlyu what we're looking for to try. |
You could also get |
I tried to And when I install the actual 32-bit version... it worked!!! I definitely have a 64-bit operating system though, so not sure why that worked... but I'm not going to ask any more questions :) anyway thanks for your help!! |
@albertlyu Holy moly, yay!
Uh, it's not whether your OS is 64-bit or not, it's whether your Python installation is 64 bit. In the Windows world, I'm quite certain you can freely install 32 bit applications and be perfectly OK. |
Sure sure. Now makes sense why 64b installer couldn't find location...it didn't actually exist. 64b OS doesn't require 64b Python. I'm running 64 OS with 32b Python myself. |
Oh wow, I never knew that. Running the Python interpreter just now shows that I have 32-bit Python 2.7 and 32-bit Python 3.3. I always assumed that since my OS is 64-bit, my installer was also 64-bit. Learn something new every day! Thanks guys, that was really helpful. |
@albertlyu No problem! Don't be a stranger. :-) |
Python 3 support is intricately linked with Python 3 support in nflgame. Whatever decision is made for nflgame will carry to nfldb.
See BurntSushi/nflgame#78
The text was updated successfully, but these errors were encountered: