autonomousvision / convolutional_occupancy_networks

[ECCV'20] Convolutional Occupancy Networks
https://pengsongyou.github.io/conv_onet
MIT License
830 stars 113 forks source link

Conda setup : environment.yaml file gives warning before installation #36

Closed kajal-puri closed 1 year ago

kajal-puri commented 2 years ago

Hi,

In order to set up the conda environment by running the following command :

conda env create -f environment.yaml

It gives the following warning :

"Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies. Conda may not use the correct pip to install your packages, and they may end up in the wrong place. Please add an explicit pip dependency. I'm adding one for you, but still nagging you"

I did not pay attention to the warning earlier but then I had to manually install a lot of packages (probably the one that should be installed using pip), by searching I came to know this issue that earlier conda used to come with pip installed but now it should be mentioned explicitly.

I've edited the environment.yaml file in the following way to remove the warning and installing all the libraries as well as pip correctly. Opening this issue here to save time, in case someone is facing version conflicts same as me.

dependencies:
  - pip
  - cython=0.29.2
  - imageio=2.4.1
.........

Let me know, in case I'm doing something wrong or there is better way to do this. Thank you