-
-
Notifications
You must be signed in to change notification settings - Fork 970
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
pip install (as per docs) fails with ModuleNotFoundError: No module named 'axolotl' #945
Comments
Duplicate of #910 ? |
Probably the same underlying issue but the error message is subtly different:
Unclear why this is the case. |
May I ask if docker works? Alternatively, could you try create a new conda/pip venv again? |
Just running pip3 install -e '.[flash-attn,deepspeed]' once again in my venv solved the issue. |
Actually the docs are wrong. You need to git clone the repo, then cd into the repo. Then do and you will almost certainly need: |
I am having this same issue. I looked at other issue reports and haven't found a solution yet |
Axolotl needs to be installed from source by GitHub cloning the repository currently. We have dependencies that aren't packages currently so we can't push axolotl as a pypi package currently |
Is there any plan to support installing Axolotl without cloning the repository or is that a fundamental limitation? |
Edit: This is incorrect. See comment below: #945 (comment) @fozziethebeat , you can run it like this. pip3 install "axolotl[flash-attn,deepspeed] @ git+https://github.com/OpenAccess-AI-Collective/axolotl" |
@NanoCode012 Interesting, that's what I'm doing (in a conda environment) but Axolotl isn't being found. When I check the environments site-packages I just see the Running /home/fozziethebeat/anaconda3/envs/planar-ax/bin/python: Error while finding module specification for 'axolotl.cli.preprocess' (ModuleNotFoundError: No module named 'axolotl') |
Oh sorry, I did not read the earlier context. Hmm, it would seem that it's necessary to clone as per above discussion. |
Please check that this issue hasn't been reported before.
Expected Behavior
When installing just using pip via the command in the docs:
Current behaviour
Others are seeing the same behavior: https://discord.com/channels/1104757954588196865/1111279858136383509/1164806862508666900
Steps to reproduce
Install via pip:
However cloning the repo and installing that seems to get further:
Config yaml
No response
Possible solution
No response
Which Operating Systems are you using?
Python Version
3.10
axolotl branch-commit
main/7fabc4d
Acknowledgements
The text was updated successfully, but these errors were encountered: