Comments (4)
Hi I'm also have the same problem.
I create a new enviroment and run the following comands:
conda install python
conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia
pip install ultralytics
Then when I believe that all is ok I run in a python script:
import ultralytics
and I got the following error:
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
from ultralytics.
嘿,兄弟,不需要进行这样操作,
有两种可能一种是环境变量的问题,你可以打开你的subprocess.py文件
位置在你的python环境中,比如 C:\User...\Python\Python39\lib\subprocess.py
找到报错的位置,去打印args变量,查看哪些环境变量出了问题
print(args) hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
另一种方式是,找到subprocess.py中的class Popen
然后将shell=False 改为 shell=True
from ultralytics.
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.
For additional resources and information, please see the links below:
- Docs: https://docs.ultralytics.com
- HUB: https://hub.ultralytics.com
- Community: https://community.ultralytics.com
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Thank you for your contributions to YOLO 🚀 and Vision AI ⭐
from ultralytics.
@sijie-Xu 嘿,感谢你的建议!
我建议你先尝试查看环境变量是否设置正确,然后看看是否有包含问题的地方。将print(args)
添加到相应的位置,会有助于找到具体出错的地方。
如果这个方法不起作用,你可以尝试将shell=False
改为shell=True
,这可能会解决问题。
希望有所帮助!
from ultralytics.
Related Issues (20)
- RTSP path is changed from the defined url when inference
- Error Implementing model training using YOLOv8 on Android HOT 2
- <A bug in Data Augmentation>YOLOv8-OBB HOT 9
- Error reported when setting model single channel ch: 1 HOT 8
- No labels found HOT 6
- AttributeError: 'Segment' object has no attribute 'detect' HOT 6
- Custom copy_paste augmentation HOT 2
- Why are the max_channels in the backbone of the classification model and the detection model different? HOT 5
- 【BUG?】Angle error issue HOT 3
- TaskAlignedAssigner doesn't take into account `reg_max` which affects prediction of large objects HOT 1
- How to read onnx and obtain names, imgsz HOT 1
- .pth HOT 2
- PosixPath Error after loading trained Best.pt file HOT 2
- cant get bounding box cords while using sahi only without HOT 2
- RT-DETR HOT 4
- forces closed kivy ultralytics application due to ultralytics psutil error HOT 1
- yolov8 yaml文件的anchors 有详细的修改说明文档吗? HOT 4
- Continue training from old model with different number of classes HOT 2
- modified model HOT 5
- note: This is an issue with the package mentioned above, not pip. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ultralytics.