8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Anacondaで32bitのPython環境を作る

Posted at

背景

ラベルプリンタをPythonからCOM経由で印刷するために32bit版のPython環境が必要だった
参考

環境

  • windows10(64bit)
  • Anaconda(64bit)

この上にPython3.6(32bit)を構築します

環境構築手順

CONDA_FORCE_32BITを設定するやり方は古くなっています 参考

  1. 環境変数CONDA_SUBDIRをwin-32に設定
  2. conda infoコマンドでplatform : win-32になっていることを確認
  3. AnacondaでPythonの仮想環境を作成
  4. 作った仮想環境をActivateして確認

Pythonを起動してMSC v.1900 32 bit (Intel)が見えたらインストールできている

$ set CONDA_SUBDIR=win-32
$ conda create -n py36_32bit python=3.6.5
$ conda activate py36_32bit
$ python
Python 3.6.8 |Anaconda, Inc.| 
(default, Feb 21 2019, 18:28:22) [MSC v.1916 32 bit (Intel)] on win32

8
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?