Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Was not able to install with your hf-env.yml file #3

Open
Golddouble opened this issue Aug 27, 2024 · 1 comment
Open

Was not able to install with your hf-env.yml file #3

Golddouble opened this issue Aug 27, 2024 · 1 comment

Comments

@Golddouble
Copy link

Golddouble commented Aug 27, 2024

Thank you for the video on https://youtu.be/jan07gloaRg

Unfortunately I was not able to install it with your hf-env.yml (https://github.com/ShawhinT/YouTube-Blog/tree/main/LLMs/hugging-face)

My Conda is the Miniconda version.

First I was trying in the normal terminal environment:
Result:

user@mx:~/miniconda3
$ conda env create --file hf-env.yml
Cannels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): / Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f83c558f920>: Failed to resolve 'conda.anaconda.org' ([Errno -2] Name or service not known)")': /conda-forge/linux-64/repodata.json.zst

done
Solving environment: failed
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides requested zlib ==1.2.13 h4dc903c_0
  - nothing provides requested zeromq ==4.3.4 he49afe7_1
  - nothing provides requested yaml ==0.2.5 h0d85af4_2
  - nothing provides requested xz ==5.4.2 h6c40b1e_0
  - nothing provides requested wheel ==0.38.4 py310hecd8cb5_0
  - nothing provides requested tornado ==6.3.2 py310h6729b98_0
  - nothing provides requested tk ==8.6.12 h5d9f67b_0
  - nothing provides __osx needed by terminado-0.17.1-pyhd1c38e8_0
  - nothing provides requested sqlite ==3.41.2 h6c40b1e_0
  - nothing provides requested setuptools ==68.0.0 py310hecd8cb5_0
  - nothing provides __osx needed by send2trash-1.8.2-pyhd1c38e8_0
  - nothing provides requested rpds-py ==0.9.2 py310h3461e44_0
  - nothing provides requested readline ==8.2 hca72f7f_0
  - nothing provides requested pyzmq ==25.1.0 py310h998be00_0
  - nothing provides requested python ==3.10.12 h5ee71fb_0
  - nothing provides requested pyobjc-framework-cocoa ==9.2 py310hef2d279_0
  - nothing provides requested pyobjc-core ==9.2 py310hef2d279_0
  - nothing provides requested psutil ==5.9.5 py310h90acd4f_0
  - nothing provides requested pip ==23.2.1 py310hecd8cb5_0
  - nothing provides requested openssl ==3.1.1 h8a1eda9_1
  - nothing provides requested ncurses ==6.4 hcec6c5f_0
  - nothing provides requested markupsafe ==2.1.3 py310h6729b98_0
  - nothing provides requested libsodium ==1.0.18 hbcb3906_1
  - nothing provides requested libffi ==3.4.4 hecd8cb5_0
  - nothing provides requested libcxx ==16.0.6 hd57cbcb_0
  - nothing provides requested jupyter_core ==5.3.1 py310h2ec42d9_0
  - nothing provides __osx needed by ipython-8.14.0-pyhd1c38e8_0
  - nothing provides __osx needed by ipykernel-6.25.0-pyh5fb750a_0
  - nothing provides requested debugpy ==1.6.7 py310h7a76584_0
  - nothing provides requested cffi ==1.15.1 py310ha78151a_3
  - nothing provides requested ca-certificates ==2023.7.22 h8857fd0_0
  - nothing provides requested bzip2 ==1.0.8 h1de35cc_0
  - nothing provides requested brotli-python ==1.0.9 py310h7a76584_9
  - nothing provides requested argon2-cffi-bindings ==21.2.0 py310h90acd4f_3

Could not solve for environment specs
The following packages are incompatible
├─ argon2-cffi-bindings ==21.2.0 py310h90acd4f_3 does not exist (perhaps a typo or a missing channel);
├─ brotli-python ==1.0.9 py310h7a76584_9 does not exist (perhaps a typo or a missing channel);
├─ bzip2 ==1.0.8 h1de35cc_0 does not exist (perhaps a typo or a missing channel);
├─ ca-certificates ==2023.7.22 h8857fd0_0 does not exist (perhaps a typo or a missing channel);
├─ cffi ==1.15.1 py310ha78151a_3 does not exist (perhaps a typo or a missing channel);
├─ debugpy ==1.6.7 py310h7a76584_0 does not exist (perhaps a typo or a missing channel);
├─ ipykernel ==6.25.0 pyh5fb750a_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ ipython ==8.14.0 pyhd1c38e8_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ jupyter_core ==5.3.1 py310h2ec42d9_0 does not exist (perhaps a typo or a missing channel);
├─ libcxx ==16.0.6 hd57cbcb_0 does not exist (perhaps a typo or a missing channel);
├─ libffi ==3.4.4 hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ libsodium ==1.0.18 hbcb3906_1 does not exist (perhaps a typo or a missing channel);
├─ markupsafe ==2.1.3 py310h6729b98_0 does not exist (perhaps a typo or a missing channel);
├─ ncurses ==6.4 hcec6c5f_0 does not exist (perhaps a typo or a missing channel);
├─ openssl ==3.1.1 h8a1eda9_1 does not exist (perhaps a typo or a missing channel);
├─ pip ==23.2.1 py310hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ psutil ==5.9.5 py310h90acd4f_0 does not exist (perhaps a typo or a missing channel);
├─ pyobjc-core ==9.2 py310hef2d279_0 does not exist (perhaps a typo or a missing channel);
├─ pyobjc-framework-cocoa ==9.2 py310hef2d279_0 does not exist (perhaps a typo or a missing channel);
├─ python ==3.10.12 h5ee71fb_0 does not exist (perhaps a typo or a missing channel);
├─ pyzmq ==25.1.0 py310h998be00_0 does not exist (perhaps a typo or a missing channel);
├─ readline ==8.2 hca72f7f_0 does not exist (perhaps a typo or a missing channel);
├─ rpds-py ==0.9.2 py310h3461e44_0 does not exist (perhaps a typo or a missing channel);
├─ send2trash ==1.8.2 pyhd1c38e8_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ setuptools ==68.0.0 py310hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ sqlite ==3.41.2 h6c40b1e_0 does not exist (perhaps a typo or a missing channel);
├─ terminado ==0.17.1 pyhd1c38e8_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ tk ==8.6.12 h5d9f67b_0 does not exist (perhaps a typo or a missing channel);
├─ tornado ==6.3.2 py310h6729b98_0 does not exist (perhaps a typo or a missing channel);
├─ wheel ==0.38.4 py310hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ xz ==5.4.2 h6c40b1e_0 does not exist (perhaps a typo or a missing channel);
├─ yaml ==0.2.5 h0d85af4_2 does not exist (perhaps a typo or a missing channel);
├─ zeromq ==4.3.4 he49afe7_1 does not exist (perhaps a typo or a missing channel);
└─ zlib ==1.2.13 h4dc903c_0 does not exist (perhaps a typo or a missing channel).

After I made a second try with the (base) environment:

Result:


user@mx:~/miniconda3
$ conda activate
(base) user@mx:~/miniconda3
$ conda env create --file hf-env.yml
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides requested zlib ==1.2.13 h4dc903c_0
  - nothing provides requested zeromq ==4.3.4 he49afe7_1
  - nothing provides requested yaml ==0.2.5 h0d85af4_2
  - nothing provides requested xz ==5.4.2 h6c40b1e_0
  - nothing provides requested wheel ==0.38.4 py310hecd8cb5_0
  - nothing provides requested tornado ==6.3.2 py310h6729b98_0
  - nothing provides requested tk ==8.6.12 h5d9f67b_0
  - nothing provides __osx needed by terminado-0.17.1-pyhd1c38e8_0
  - nothing provides requested sqlite ==3.41.2 h6c40b1e_0
  - nothing provides requested setuptools ==68.0.0 py310hecd8cb5_0
  - nothing provides __osx needed by send2trash-1.8.2-pyhd1c38e8_0
  - nothing provides requested rpds-py ==0.9.2 py310h3461e44_0
  - nothing provides requested readline ==8.2 hca72f7f_0
  - nothing provides requested pyzmq ==25.1.0 py310h998be00_0
  - nothing provides requested python ==3.10.12 h5ee71fb_0
  - nothing provides requested pyobjc-framework-cocoa ==9.2 py310hef2d279_0
  - nothing provides requested pyobjc-core ==9.2 py310hef2d279_0
  - nothing provides requested psutil ==5.9.5 py310h90acd4f_0
  - nothing provides requested pip ==23.2.1 py310hecd8cb5_0
  - nothing provides requested openssl ==3.1.1 h8a1eda9_1
  - nothing provides requested ncurses ==6.4 hcec6c5f_0
  - nothing provides requested markupsafe ==2.1.3 py310h6729b98_0
  - nothing provides requested libsodium ==1.0.18 hbcb3906_1
  - nothing provides requested libffi ==3.4.4 hecd8cb5_0
  - nothing provides requested libcxx ==16.0.6 hd57cbcb_0
  - nothing provides requested jupyter_core ==5.3.1 py310h2ec42d9_0
  - nothing provides __osx needed by ipython-8.14.0-pyhd1c38e8_0
  - nothing provides __osx needed by ipykernel-6.25.0-pyh5fb750a_0
  - nothing provides requested debugpy ==1.6.7 py310h7a76584_0
  - nothing provides requested cffi ==1.15.1 py310ha78151a_3
  - nothing provides requested ca-certificates ==2023.7.22 h8857fd0_0
  - nothing provides requested bzip2 ==1.0.8 h1de35cc_0
  - nothing provides requested brotli-python ==1.0.9 py310h7a76584_9
  - nothing provides requested argon2-cffi-bindings ==21.2.0 py310h90acd4f_3

Could not solve for environment specs
The following packages are incompatible
├─ argon2-cffi-bindings ==21.2.0 py310h90acd4f_3 does not exist (perhaps a typo or a missing channel);
├─ brotli-python ==1.0.9 py310h7a76584_9 does not exist (perhaps a typo or a missing channel);
├─ bzip2 ==1.0.8 h1de35cc_0 does not exist (perhaps a typo or a missing channel);
├─ ca-certificates ==2023.7.22 h8857fd0_0 does not exist (perhaps a typo or a missing channel);
├─ cffi ==1.15.1 py310ha78151a_3 does not exist (perhaps a typo or a missing channel);
├─ debugpy ==1.6.7 py310h7a76584_0 does not exist (perhaps a typo or a missing channel);
├─ ipykernel ==6.25.0 pyh5fb750a_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ ipython ==8.14.0 pyhd1c38e8_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ jupyter_core ==5.3.1 py310h2ec42d9_0 does not exist (perhaps a typo or a missing channel);
├─ libcxx ==16.0.6 hd57cbcb_0 does not exist (perhaps a typo or a missing channel);
├─ libffi ==3.4.4 hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ libsodium ==1.0.18 hbcb3906_1 does not exist (perhaps a typo or a missing channel);
├─ markupsafe ==2.1.3 py310h6729b98_0 does not exist (perhaps a typo or a missing channel);
├─ ncurses ==6.4 hcec6c5f_0 does not exist (perhaps a typo or a missing channel);
├─ openssl ==3.1.1 h8a1eda9_1 does not exist (perhaps a typo or a missing channel);
├─ pip ==23.2.1 py310hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ psutil ==5.9.5 py310h90acd4f_0 does not exist (perhaps a typo or a missing channel);
├─ pyobjc-core ==9.2 py310hef2d279_0 does not exist (perhaps a typo or a missing channel);
├─ pyobjc-framework-cocoa ==9.2 py310hef2d279_0 does not exist (perhaps a typo or a missing channel);
├─ python ==3.10.12 h5ee71fb_0 does not exist (perhaps a typo or a missing channel);
├─ pyzmq ==25.1.0 py310h998be00_0 does not exist (perhaps a typo or a missing channel);
├─ readline ==8.2 hca72f7f_0 does not exist (perhaps a typo or a missing channel);
├─ rpds-py ==0.9.2 py310h3461e44_0 does not exist (perhaps a typo or a missing channel);
├─ send2trash ==1.8.2 pyhd1c38e8_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ setuptools ==68.0.0 py310hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ sqlite ==3.41.2 h6c40b1e_0 does not exist (perhaps a typo or a missing channel);
├─ terminado ==0.17.1 pyhd1c38e8_0 is not installable because it requires
│  └─ __osx, which is missing on the system;
├─ tk ==8.6.12 h5d9f67b_0 does not exist (perhaps a typo or a missing channel);
├─ tornado ==6.3.2 py310h6729b98_0 does not exist (perhaps a typo or a missing channel);
├─ wheel ==0.38.4 py310hecd8cb5_0 does not exist (perhaps a typo or a missing channel);
├─ xz ==5.4.2 h6c40b1e_0 does not exist (perhaps a typo or a missing channel);
├─ yaml ==0.2.5 h0d85af4_2 does not exist (perhaps a typo or a missing channel);
├─ zeromq ==4.3.4 he49afe7_1 does not exist (perhaps a typo or a missing channel);
└─ zlib ==1.2.13 h4dc903c_0 does not exist (perhaps a typo or a missing channel).

(base) user@mx:~/miniconda3
$ 

I have absolutely no experience with Conda. It's my first try.

So what am I missing?
Would appreciate some help.

Thank you.

@ShawhinT
Copy link
Owner

Thanks for raising this. It seems like the issue is due to Mac versions of some libraries being installed.

I've added a requirements.txt file

Does that work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Golddouble @ShawhinT and others