Skip to content

Commit 60a6496

Browse files
authoredAug 9, 2021
Add a note about PYTHONUSERSITE env variable (triton-inference-server#72)
1 parent 8f845c0 commit 60a6496

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎README.md

+10
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,16 @@ Packing environment at '/home/iman/miniconda3/envs/python-3-6' to 'python-3-6.ta
393393
[########################################] | 100% Completed | 4.5s
394394
```
395395

396+
**Important Note:** Before installing the packages in your conda environment, make sure that you
397+
have exported [`PYTHONNOUSERSITE`](https://docs.python.org/3/using/cmdline.html#envvar-PYTHONNOUSERSITE) environment variable:
398+
399+
```
400+
export PYTHONNOUSERSITE=True
401+
```
402+
403+
If this variable is not exported and similar packages are installed outside your conda environment,
404+
your tar file may not contain all the dependencies required for an isolated Python environment.
405+
396406
After creating the tar file from the conda environment, you need to tell Python
397407
backend to use that environment for your model. You can do this by adding the
398408
lines below to the `config.pbtxt` file:

0 commit comments

Comments
 (0)
Please sign in to comment.