UE4&

Unreal Engine 4 ・プログラミング

python windows venv 躓きポイント 

Python windows venv 躓きポイント

 

はやたすさんの Udemy 講座受講時に躓いた箇所のメモ

www.udemy.com

The term 'source' is not recognized as the name of a cmdlet.....

使用コマンド

PS C:\Users\W\Desktop\mydjango> source venv/bin/activate

 

エラー文

source : The term 'source' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, ver
ify that the path is correct and try again.
At line:1 char:1
+ source venv/bin/activate
+ ~~~~~~
    + CategoryInfo          : ObjectNotFound: (source:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

 

解決方法

anaconda terminal から以下のサイトのコマンドを一つずつ実行する。

参考サイト

stackoverflow.com

ERROR: You must give at least one requirement to install (see "pip help install")

使用コマンド

C:\Users\W\Desktop\mydjango>python -m pip install --upgrade

エラー文

ERROR: You must give at least one requirement to install (see "pip help install")

WARNING: You are using pip version 21.2.4; however, version 22.0.4 is available.
You should consider upgrading via the 'C:\Users\W\Desktop\mydjango\venv\Scripts\python.exe -m pip install --upgrade pip' command.

 

解決方法

以下のコマンドを使用する。

.\venv\Scripts\activate

参考サイト

zenn.dev

Django のバージョン確認

 

python -m django --version

 

参考サイト

qiita.com