You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set PYTHONPATH=path\to\python-chebai;path\to\python-chebai-proteins
76
-
```
77
-
78
-
> 🔎 See the [PYTHONPATH Explained](#-pythonpath-explained) section below for more details.
79
49
80
50
81
51
### 📊 SCOPE hierarchy prediction
@@ -86,61 +56,3 @@ python -m chebai fit --trainer=../configs/training/default_trainer.yml --trainer
86
56
```
87
57
88
58
Same command can be used for **DeepGO** just by changing the config path for data.
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
## 🧭 PYTHONPATH Explained
97
-
98
-
### What is `PYTHONPATH`?
99
-
100
-
`PYTHONPATH` is an environment variable that tells Python where to search for modules that aren't installed via `pip` or not in your current working directory.
...and you're running the code from `python-chebai`, Python won't know where to find `chebai_proteins` (from another repo like `python-chebai-proteins/`) unless you add it to `PYTHONPATH`.
111
-
112
-
113
-
### How Python Finds Modules
114
-
115
-
Python looks forimportsin this order:
116
-
117
-
1. Current directory
118
-
2. Standard library
119
-
3. Paths in`PYTHONPATH`
120
-
4. Installed packages (`site-packages`)
121
-
122
-
You can inspect the full search paths:
123
-
124
-
```bash
125
-
python -c "import sys; print(sys.path)"
126
-
```
127
-
128
-
129
-
130
-
### ✅ Setting `PYTHONPATH`
131
-
132
-
#### 🐧 Linux / macOS
133
-
134
-
```bash
135
-
export PYTHONPATH=/path/to/python-chebai-graph
136
-
echo$PYTHONPATH
137
-
```
138
-
139
-
#### 🪟 Windows CMD
140
-
141
-
```cmd
142
-
set PYTHONPATH=C:\path\to\python-chebai-graph
143
-
echo %PYTHONPATH%
144
-
```
145
-
146
-
> 💡 Note: This is temporary for your terminal session. To make it permanent, add it to your system environment variables.
0 commit comments