-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): note python3 command and venv "name cmd" error in readme
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,6 +97,15 @@ The latest version of git should be fine. Python must be 3.10 or earlier, 3.10 s | |
Python installed for another form of Stable Diffusion, that should work, but make sure to verify the version in the next | ||
step. | ||
|
||
Make sure you have Python 3.10 or earlier: | ||
|
||
```shell | ||
> python --version | ||
Python 3.10 | ||
``` | ||
|
||
If your system uses `python3` and `pip3` for the Python 3.x tools, make sure to adjust the commands shown here. | ||
|
||
Once you have those basic packages installed, clone this git repository: | ||
|
||
```shell | ||
|
@@ -105,12 +114,9 @@ Once you have those basic packages installed, clone this git repository: | |
|
||
### Create a virtual environment | ||
|
||
Make sure you have Python 3.10 or earlier, change into the then create a virtual environment: | ||
Change into the `api/` directory, then create a virtual environment: | ||
|
||
```shell | ||
> python --version | ||
Python 3.10 | ||
|
||
> pip install virtualenv | ||
|
||
> python -m venv onnx_env | ||
|
@@ -119,6 +125,13 @@ Python 3.10 | |
This will contain all of the pip libraries. If you update or reinstall Python, you will need to recreate the virtual | ||
environment. | ||
|
||
If you receive an error like `Error: name 'cmd' is not defined`, there may be [a bug in the `venv` module](https://www.mail-archive.com/[email protected]/msg1884072.html) on certain | ||
Debian-based systems. You may need to install venv through apt instead: | ||
|
||
```shell | ||
> sudo apt install python3-venv # only if you get an error | ||
``` | ||
|
||
Every time you start using ONNX web, activate the virtual environment: | ||
|
||
```shell | ||
|