Teichlab / cellphonedb

MIT License
339 stars 105 forks source link

Can't activate the virtual environment in Windows 10 #252

Closed rachel662 closed 3 years ago

rachel662 commented 3 years ago

Hi there, I was trying to activate the virtual environment in windows 10, however the line given in the readme to activate it doesn't work for me

I get the error 'source' is not recognized as an internal or external command, operable program or batch file.

would anyone be able to help me solve this? thanks so much, Rachel

prete commented 3 years ago

Hi @rachel662 , source is a shell command for POSIX (Linux/Mac) environments. On Windows, virtualenv creates a special file for you to activete the environment, you should run \path\to\cpdb\Scripts\activate instead. You can read more on that on the official virtualenv docs: User guide: activate script.

Alternatively, if you've got anaconda/miniconda installed you can create the environment for CellPhoneDB using that.