I will summarize the procedure and precautions so as not to cause a victim like me who saw hell.
Download the installer from the official website and install it.
It will be installed with C: \ Python34
, which is installed normally, so put the path here.
https://www.python.org/downloads/
Download the virtualenv source from the link below
(As of August 5, 2014, a file named virtualenv-1.11.6.tar.gz
)
https://pypi.python.org/pypi/virtualenv
Unzip the downloaded file, move to the unzipped folder and execute the following command
python setup.py install
Go to the project directory and create & enable virtual environment
cd path\to\project-dir
python -m virtualenv venv
venv\Scripts\avtivate
Execute the following command
python -c "import urllib; urllib.request.urlretrieve('http://python-distribute.org/distribute_setup.py', 'distribute_setup.py')"
python distribute_setup.py
easy_install pip
__ !!! This step is pretty important !!! __
The heroku official website is here, normally
pip install django-toolbelt
I'm doing it, but things don't go so easily on windows.
django-toolbelt
tries to install django
, psycopg2
, gunicorn
, dj-database-url
, dj-static
, and static3
together, but psycopg2
seems to be installed. It doesn't support python3.4 (64bit) well.
Therefore, it is necessary to get the library for python3.4 (64bit) that is released independently.
Download the file psycopg2-2.5.3.win-amd64-py3.4.exe
from the link below and
I was able to install django-toolbelt
safely by installing with ʻeasy_install psycopg2-2.5.3.win-amd64-py3.4.exe`.
http://www.lfd.uci.edu/~gohlke/pythonlibs/
I don't know if this was necessary or not, but if the above steps don't work, installing the following application may work.
postoresql http://www.postgresql.org/download/windows/
7zip http://sevenzip.sourceforge.jp/
To be clear, the pip
command is almost unusable in windows (as of 8/5/2014).
If you have a library you want, you can download the library that suits your environment from the link below and ʻeasy_install`.
http://www.lfd.uci.edu/~gohlke/pythonlibs/
[Perfect Python](http://www.amazon.co.jp/%E3%83%91%E3%83%BC%E3%83%95%E3%82%A7%E3%82%AF%E3% 83% 88Python-PERFECT-SERIES-5-Python% E3% 82% B5% E3% 83% 9D% E3% 83% BC% E3% 82% BF% E3% 83% BC% E3% 82% BA / dp / 477415539X) http://hennohito.cocolog-nifty.com/blog/2014/04/python34-64-b-1.html
Recommended Posts