#๐ Pip install lap error, can't install lap when trying to install ultralytics
277 messages ยท Page 1 of 1 (latest)
@balmy current
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
can you see the txt file i send or should i sent it again
you have to use the paste bin
ImportError: lap requires numpy, please "pip install numpy".
did you try this?
yeah requirement already satisfied
what OS and python version are you?
@balmy current look like the last update to lap was two years ago
Running lap requires:
Python (2.7, 3.7, 3.8, 3.9)
NumPy (>=1.10.1)
I guess you should try doing it with python 3.9
you can install multiple python versions and make a virtual environment for different versions with py -3.9 -m venv venv
see if you can find a 3.9 version that has a windows installer.
there's one here
thanks man. let me runthrough thi quickly and revert
PS C:\Users\iveda\Desktop\Minor Project\may1> ..myenv\Scripts\Activate
..myenv\Scripts\Activate : The term '..myenv\Scripts\Activate' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- ..myenv\Scripts\Activate
-
+ CategoryInfo : ObjectNotFound: (.\.myenv\Scripts\Activate:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\iveda\Desktop\Minor Project\may1>
how do i fix this?
created env, but can't enter into it
why the ..?
"myenv\Scripts\Activate"
this also dont' work
./.venv/Scripts/Activate.ps1
PS C:\Users\iveda\Desktop\Minor Project\may1> ./myenv/Scripts/Activate.ps1
./myenv/Scripts/Activate.ps1 : The term './myenv/Scripts/Activate.ps1' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- ./myenv/Scripts/Activate.ps1
-
+ CategoryInfo : ObjectNotFound: (./myenv/Scripts/Activate.ps1:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
doesn't work either
click on the scripts
then
then activate.ps1
drag it to the terminal
and press enter
drag the Activate.ps1 to terminal
i am administrator
yes
open a new window
in code?
then
in which folder or any random folder?
make a new one
yes
venv or conda?
venv ofc
choose the pyrhon version and create it
what does your code require?
3.9 or 3.12?
wait till it creates
created
now go to the main.py
and start it though the button on top right
run button
screenshot
ikr its empty just do
do it
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
what was error btw, if i can know?
apparently, the first error was that your main.py was lying under the venv files.
secondly, you weren't having exec policy bypass.
third, always try to create env with vscode itself
there was no error on your side it was just terminal and its policies
oh okay
one error was
create with vscode itself, noted!
here. It was never myvenv
okay this is solved
yes
same error, here
pip install git+git://github.com/gatagat/lap.git
i see
btw
you can just do pip install numpy
i just saw your error
did
okay then go for git
yeah
what
@balmy current that package is closed
so now?
pip install lapx
yes
this works on 3.12
so shift
yeah true anyways we can't
yep
error
onstall it
they've given a link
as well
at the end of error see
to the Microsoft
general python dev and cpp compiler
desktop development with c++?
can i pip install -u setuptools?
Are you trying to install your Python library dependencies using the pip command and you always encounter this error: โerror: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/โ?
In this video, I will share how to fix the issue. I am trying to in...
what's that
Facing the 'gcc is not recognized' error in your Windows system? This comprehensive guide provides step-by-step solutions to resolve the issue, including installing MinGW and setting up environment variables. Follow these simple steps to ensure a seamless coding experience with gcc.
no error when i run gcc -v
this
Messing around with gcc is a red hering
so what should i do in this case?
either get a wheel
pip should download the wheel for you
pre built
pip install wheel?
lapx required numpy to be installed first.
nuh
pip install numpy
installed thats not the error
already installed numpy
What other packages need to be installed?
bruh
whole ultralytics
@niklaus.one
you need to fix this error
oh, pytorch

๐ can't run sudo apt install g++ here
read the whole.thing
learn to solve
says to install cygwin applciaiton
doing
that was a joke
ik
cygwin in progress or should i do this
no let it install
okay
Oh, no wonder the install is taking so long for me. nvidia-ccl-cu12's wheel is 188MB

Again, this is a red hering.
should i go with wheel, you're sayinh?
which package dependency is wanting gcc?
ultralytics
no, which dependency?
scipy
scipy
i k there is a thing
which had pre built wheels
but i am not able to find it
ages since I've used it
And what's the output of pip debug?
absence of compiler
scipy needs to build a wheel on local machine i hope you know that
should i run pip debug
yes
Then you should install the 64 bit version of python
telling or asking?
telling
now how i do thaT?
use the system app manager
it creates whatever version you have installed
i specifically chose 3.9
and you installed the 32 bit version
because we were in impression that lap supports 3.9 and ny mistake i installed 32bit
yes
I would suggest installing python via winget
winget install python.python.3.9
3.12 then
because lap was shifted to lapx
yeash
thank you guys @golden shale @regal falcon problem solved
Like I said. Red herring
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.