Skip to content

Commit f055f3d

Browse files
committed
update readme
1 parent 5403cfb commit f055f3d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ Click `Install Portable Python` to install. Please be patient, it may take up to
3737

3838
Note: if you get a "Failed to download configuration" error with the jython installer, try replacing the `Config URL:` path with a link to the ` pythonCWMS_config.json` file in the latest release (e.g. [./releases/tag/v0.81/pythonCWMS_config.json](https://github.com/USACE-WaterManagement/pythonCWMS/releases/tag/v0.81)) and reload the configuration. This error can occur if the rawgithub content is blocked.
3939

40-
You can also just download the latest release file (e.g. `pythonCWMS0.81.7z` (https://github.com/USACE-WaterManagement/pythonCWMS/releases/)) and unzip the portable python distribution and setup your user environment variables yourself to add the python to your path.
40+
You can also just download the latest release file (e.g. `pythonCWMS1.01.7z` (https://github.com/USACE-WaterManagement/pythonCWMS/releases/)) and unzip the portable python distribution and setup your user environment variables yourself to add the python to your path.
4141

4242
### General Usage
4343
- Use `pythonCWMS` in the command line to run python.
44-
- Setup the default python in VsCode by pointing the []`python.defaultInterpreterPath`] (https://code.visualstudio.com/docs/python/settings-reference) to the installation directory (e.g. `C:\hec\python\pythonCWMS0.8.0\python`).
44+
- Setup the default python in VsCode by pointing the []`python.defaultInterpreterPath`] (https://code.visualstudio.com/docs/python/settings-reference) to the installation directory (e.g. `C:\hec\python\pythonCWMS\python`).
4545
- Run `WinPython Command Prompt.exe` for command line access
4646
- Run `WinPython Interpreter.exe` for Python IDLE
4747
- Or use `pythonCWMS.bat` for the custom CWMS environment
@@ -50,13 +50,15 @@ You can also just download the latest release file (e.g. `pythonCWMS0.81.7z` (ht
5050
To have VS Code default to this portable python, open `Preferences: Open User Settings (JSON)` by pressing `Cntr+Shift+P` and searching for Preferences in the search bar at the top of VS Code.
5151
![alt text](./screenshots/vsCodeUserSettings.png)
5252

53-
In your `settings.json` file, put this line in `"python.defaultInterpreterPath": "${env:PYTHON_CWMS_HOME}\\python.exe"`.
53+
In your `settings.json` file, put in this `"python.defaultInterpreterPath": "${env:PYTHON_CWMS_HOME}\\python.exe"` or this `"python.defaultInterpreterPath": "C:\\hec\\python\\pythonCWMS\\python\\python.exe"`.
5454

5555
When working with a repo VSCode sometimes has trouble finding the interprator (e.g. python notebook w/ shared workspace). Try searching for `Python: Clear Workspace Interpreter Setting` by pressing `Cntr+Shift+P` and searching for Preferences in the search bar at the top of VS Code.
5656
![alt text](./screenshots/clearWorkspaceSetting.png)
5757

5858
#### Install additional libraries
59-
- To install additional libraries beyond what is in the [requirements_binary_only.txt](./requirements_binary_only.txt) file, open the WinPython powershell included in your python (e.g. `C:\hec\python\pythonCWMS0.8.0\WinPython Powershell Prompt.exe`) and do a pip install from there.
59+
- To install additional libraries beyond what is in the [requirements_binary_only.txt](./requirements_binary_only.txt) file, open the WinPython powershell included in your python (e.g. `C:\hec\python\pythonCWMS\WinPython Powershell Prompt.exe`) and do a pip install from there.
60+
61+
- The command `pythonCWMS -m pip install my_package_to_install` will also work
6062

6163
### CAVI Python Script Usage
6264
To use the python environment in the CAVI, a jython launcher script is used to run the python script as a subprocess. The jython script can also pass arguments to the python script.

0 commit comments

Comments
 (0)