Closed YangWenhao3906 closed 2 years ago
Have you tried the virtualenv-based route? Would that be an option for you?
To try, run the following while in /home/yang/Documents/CVE/CVEfixes/
:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
A follow-up: I've replicated the issue in a VM with Ubuntu 20.04.3 and this Miniconda installer.
Although the CVEfixes collector itself doesn't use tensorflow, guesslang depends on it, and it seems the conda resolution algorithm gets confused (even though it could just use guesslang 2.2.1 and tensorflow 2.5.0). We can help it by adding tensorflow to the dependencies, i.e., update environment.yml
like this:
name: CVEfixes
channels:
- conda-forge
- defaults
dependencies:
- python~=3.8
- pandas~=1.2
- numpy~=1.19
- requests~=2.24
- PyGithub~=1.54
- tensorflow==2.5
- jupyter
- seaborn
- matplotlib
- pip
- pip:
- PyDriller~=2.0
- guesslang~=2.0
After this the conda environment gets created correctly in my VM.
when I run
conda env create -f environment.yml
in my ubuntu 20.04, but conflict occurs. how can I solve it?