To avoid seeing hell when installing django-toolbelt on windows, heroku and python3.4 (64bit) ...

I will summarize the procedure and precautions so as not to cause a victim like me who saw hell.

Installation of python body

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/

Install virtualenv and create virtual environment

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

easy_install, pip installation

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

Library installation for python3.4 (64bit)

__ !!! 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/

Maybe it's necessary ...

I don't know if this was necessary or not, but if the above steps don't work, installing the following application may work.

Finally…

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/

Referenced books and sites

[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

To avoid seeing hell when installing django-toolbelt on windows, heroku and python3.4 (64bit) ...
Python 3.6 on Windows ... and to Xamarin.
Installing Kivy on Windows10 64bit Python3.5
Installing Kivy-Designer on Windows10 64bit Python3.5
Notes on installing Python3 and using pip on Windows7
[Note] Installing Python 3.6 + α on Windows and RHEL
Install python2.7 on windows 32bit environment
Integrate Modelica and Python on Windows
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Error and solution when installing python3 with homebrew on mac (catalina 10.15)
How to deal with errors when installing whitenoise and deploying to Heroku
Introduced binding of MeCab (Wakame seaweed) and Python to Windows 7 64bit (2016/08/18)
How to deal with errors when installing Python and pip with choco
The road to installing Python and Flask on an offline PC
Put Cabocha 0.68 on Windows and try to analyze the dependency with Python
[Kivy] How to install Kivy on Windows [Python]
Use without installing python 2.x on Windows
[Beginner] Installing Python and running programs (Windows)
Put MicroPython on Windows to run ESP32 on Python
(Windows) Causes and workarounds for UnicodeEncodeError on Python 3
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
[Python] How to install OpenCV on Anaconda [Windows]
Installing TensorFlow on Windows Easy for Python beginners
Install ZIP version Python and pip on Windows 10
Python on Windows
How to embed mod_wsgi into Apache on Python Windows
Build a Python extension for E-Cell 4 on Windows 7 (64bit)
[Heroku] Memo for deploying Python apps using Heroku on Windows [Python]
Tips and precautions when porting MATLAB programs to Python
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Installing Python 3 on Mac and checking basic operation Part 1
Create a decent shell and python environment on Windows
Use Python to monitor Windows and Mac and collect information on the apps you are working on
Use Heroku in python to notify Slack when a specific word is muttered on Twitter
Installing pandas on python2.6
python basic on windows ②
Install python on windows
Until you create Python Virtualenv on Windows and launch Jupyter
Don't lose to Ruby! How to run Python (Django) on Heroku
I get [Error 2055] when trying to connect to MySQL on Heroku
Install pyenv on MacBook Air and switch python to use
Install python and Visual Studio Code on windows10 (April 2020 version)
I tried changing the python script from 2.7.11 to 3.6.0 on windows10
Precautions and solutions when installing Ubuntu on NVIDIA GeForce PCs
(Note) Points to be addicted to when installing Scilab on ArchLinux
When you want to hit a UNIX command on Python
List of libraries to install when installing Python using Pyenv