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
### Option 1: Installation Instructions with conda
81
83
82
84
If you have an older `cellpose` environment you can remove it with `conda env remove -n cellpose` before creating a new one.
83
85
@@ -108,6 +110,20 @@ If you have **issues** with installation, see the [docs](https://cellpose.readth
108
110
109
111
If these suggestions fail, open an issue.
110
112
113
+
### Option 2: Installation Instructions with python's venv
114
+
115
+
Venv ([tutorial](https://docs.python-guide.org/dev/virtualenvs/#lower-level-virtualenv), for those interested) is a built-in tool in python for creating virtual environments. It is a good alternative if you don't want to install conda and already have python3 on your machine. The main difference is that you will need to choose where to install the environment and the packages. Cellpose will then live in this environment and not be accessible from other environments. You will need to navigate to the environment directory and activate it each time before running cellpose. The steps are similar to the conda installation:
116
+
117
+
If you are using a GPU, make sure its drivers and the cuda libraries are correctly installed.
118
+
119
+
1. Install python3.8 or later from [python.org](https://www.python.org/downloads/). This will be the version of python that will be used in the environment. You can check your python version with `python --version`.
120
+
2. Navigate to the directory where you want to create the environment and run `python3 -m venv cellpose` to create a new environment called `cellpose`.
121
+
3. Activate the environment with `source cellpose/bin/activate` on Mac/Linux or `cellpose\Scripts\activate` on Windows. A prefix `(cellpose)` should appear in the terminal.
122
+
4. Install cellpose into the `cellpose` venv using pip with `python -m pip install cellpose`.
123
+
5. Install the cellpose GUI, with `python -m pip install cellpose[gui]`. Depending on your terminal software, you may need to use quotes like this: `python -m pip install 'cellpose[gui]'`.
124
+
6. You can now run cellpose from this environment with `python -m cellpose` or `cellpose` if you are in the cellpose directory.
125
+
7. To deactivate the environment, run `deactivate`.
126
+
111
127
### GPU version (CUDA) on Windows or Linux
112
128
113
129
If you plan on running many images, you may want to install a GPU version of *torch* (if it isn't already installed).
0 commit comments