問題タブ [python-install]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - MacOS に Python 3 の複数のバージョンをインストールする
MacOS で複数のバージョンの Python 3 を使用したいと考えています。たとえば、Python3.6 と Python3.7 が必要です。Linux を使用する場合、次のように、ソースから Python をビルドして代替インストールを作成するだけです。
- 特定の Python バージョンのソース tarball をダウンロードして抽出する
- 。/構成、設定
- 須藤メイク
- sudo make altinstall
次に、新しいバージョンの Python を にインストールしusr/local/lib/pythonx.x
ます。
これは Linux で完全に機能します。MacOS で複数のバージョンの Python 3 にアクセスするにはどうすればよいですか?
編集:私のユースケースをもう少し明確にするために。OS にインストールされている Python で複数のバージョンを使用しているため、異なる Python バージョンを指定するさまざまなプロジェクトでPipenvを使用できます。