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

Deeptrack package installation problem #212

Open
shuaiting-Y opened this issue Jul 23, 2024 · 8 comments
Open

Deeptrack package installation problem #212

shuaiting-Y opened this issue Jul 23, 2024 · 8 comments

Comments

@shuaiting-Y
Copy link

When I use pip install deeptrack command, the following error occurs.
图片1
When I run !pip install deeptrack in jupyter, the following error occurs.
图片2
How can I solve the problem of not being able to install the library?

@BenjaminMidtvedt
Copy link
Collaborator

@shuaiting-Y Which os and python version are you using? It seems like setuptools is not available. Can you try first installing pip install setuptools?

@Nanrrrr
Copy link

Nanrrrr commented Dec 20, 2024

I also encountered a similar issue while installing DeepTrack, and my Python version is 3.10.1. I also tried installing Python in versions 3.8 and 3.9 but still encountered errors
微信图片_20241220193701

@BenjaminMidtvedt
Copy link
Collaborator

@Nanrrrr this seems to be an issue with the dependency lazy-import, which decided to load the README file during installation. Which OS are you using?

@Nanrrrr
Copy link

Nanrrrr commented Dec 22, 2024

@Nanrrrr this seems to be an issue with the dependency lazy-import, which decided to load the README file during installation. Which OS are you using?

Thanks for your reply, my OS is Windows 10

@giovannivolpe
Copy link
Member

@Nanrrrr are you trying to install from pip or directly from the github repository?

This issue occurred if you were trying to install it from the GitHub repository at some point because of a non-unicode font in the readme file.

@Nanrrrr
Copy link

Nanrrrr commented Dec 24, 2024

@giovannivolpe, I attempted to install it in three different ways. Firstly, I used the command "pip install deeptrack". Secondly, I tried "pip install git+https://github.com/DeepTrackAI/DeepTrack2". And thirdly, I downloaded the code to my PC terminal via GitHub and then proceeded to install it on the PowerShell command line. Regrettably, all of these three methods ended up reporting the exact same error as demonstrated above.

@giovannivolpe
Copy link
Member

@Nanrrrr this is strange as we never encountered this issue and we can't reproduce it. However, could you try to install it from the downloaded version erasing the readme file?

@Nanrrrr
Copy link

Nanrrrr commented Dec 24, 2024

@giovannivolpe Thank you for your reply. I tried to solve it again today because Python 3.7 version uses GBK encoding by default in Windows 10 and needs to be changed to UTF-8. Add PYTHONUTF8=1 to the global variables of the system, or enter set PYTHONUTF8=1 directly in cmd. Then the encoding issue was resolved and Deeptrack was successfully installed

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

4 participants