microsoft / AI-For-Beginners

12 Weeks, 24 Lessons, AI for All!
https://microsoft.github.io/AI-For-Beginners/
MIT License
34.53k stars 5.77k forks source link

cannot run "conda env create --name ai4beg" #351

Closed Alopex-Song closed 2 months ago

Alopex-Song commented 3 months ago
Screenshot 2024-07-15 at 12 54 21

in order to solve ResolvePackageNotFound:

I changed my python to version 3.9,

in order to install pytorch::torchtext=0.12.0, I chose to install pytorch 1.11.0

but still:

Screenshot 2024-07-15 at 12 57 49

could you please provide more details in "Setup" section??!

yalehu commented 3 months ago

same error

RobertErskinedev commented 3 months ago

@Alopex-Song it seems @BethanyJep does not seem to be monitoring the open issues anymore. I opened a similar issue several weeks ago with no response from her.

agodde commented 2 months ago

@Alopex-Song @RobertErskinedev I went through the hassle of resolving the dependencies one by one. The following modified requirements.txt works for me at the moment:

gensim==3.8.3 gym==0.23.1 huggingface==0.0.1 imageio==2.16.2 keras==2.11.0 nltk==3.6.6 pandas==1.4.2 pillow==10.3.0 pygame==2.1.2 scikit-image==0.19.2 seaborn==0.11.2 smart-open==5.2.1 tensorboard-data-server==0.6.1 tensorflow-datasets==4.4.0 tensorflow-hub==0.12.0 tensorflow-text==2.11.0 tensorflow==2.11.1 tensorboard==2.11.2 tokenizers==0.15.2 torchinfo==0.0.8 tqdm==4.66.3 transformers==4.38.0

After cloning the repo just replace the contents of the file ./.devcontainer/requirements.txt with the above lines, and the conda env create... command should work as expected.

Note: I haven't executed any of the code snippets,yet. So I do not know if upgrading the dependencies breaks anything.

AbhishekKabra commented 2 months ago

I get the following error when trying to install the dependencies LibMambaUnsatisfiableError: Encountered problems while solving: