Skip to content

Commit

Permalink
Update README.md (tensorflow#10670)
Browse files Browse the repository at this point in the history
* * Update README.md

Added installation approach for Windows.

* Update README.md

Updated line 91 from 
`pip3 install --user -r official/requirements.txt`

to 
`pip3 install --user -r models/official/requirements.txt`

* Update README.md
Update line 78 from
$env:PYTHONPATH += "C:\path\to\models"

to
$env:PYTHONPATH += ":\path\to\models"

Co-authored-by: Vishnuvardhan Janapati <[email protected]>
  • Loading branch information
boylin0 and jvishnuvardhan authored Jun 15, 2022
1 parent 64d783f commit 3c77e65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ git clone https://github.com/tensorflow/models.git
export PYTHONPATH=$PYTHONPATH:/path/to/models
```

If you are using in a Windows environment, you may need to use the following command with PowerShell:
```shell
$env:PYTHONPATH += ":\path\to\models"
```

If you are using a Colab notebook, please set the Python path with os.environ.

```python
Expand All @@ -83,7 +88,7 @@ os.environ['PYTHONPATH'] += ":/path/to/models"
3. Install other dependencies

```shell
pip3 install --user -r official/requirements.txt
pip3 install --user -r models/official/requirements.txt
```

Finally, if you are using nlp packages, please also install
Expand Down

0 comments on commit 3c77e65

Please sign in to comment.