Search code examples
python-3.xtoxanaconda3

Executing tox in anaconda environment


I am trying to train mymodel from anaconda virtual environment.I installed all the packages required. I tried to run the command tox from the folder where there are 3 files. requirements.txt which includes the numpy,pandas librarieswith versions,tox, and regression model. But I am getting the error ,python.exe not found in venv. But anaconda comes with python. How to correct this error?


Solution

  • Open anaconda prompt in virtual environment. Install tox-conda with pip install tox-conda. After installing go to the folder where you have all these files. Now execute the tox command or tox -r It will take sometime when you run for the first time.