6

I have an environment of conda configurated with python 3.6 and dvc is installed there, but when I try to execute dvc run with python, dvc call the python version of main installation of conda and not find the installed libraries.

$ conda activate py36
$ python --version
Python 3.6.6 :: Anaconda custom (64-bit)
$ dvc run python --version
Running command:
    python --version
Python 3.7.0
Saving information to 'Dvcfile'.
4

2 回答 2

2

dvc 0.24.3 版本纠正了这个问题。

于 2019-02-06T00:55:31.500 回答
1

这可能会解决您的问题:

dvc run $(which python) --version
于 2018-11-08T19:30:18.493 回答