![]() ![]() WSL is undoubtedly a very cool new feature but using the laptop for a couple of days made me realise how much I really don't enjoy using Windows. In the end I decided to just install linux. It is pretty quick overall, navigating, apt upgrade, apt install etc, is all fine.Įdit - thanks everyone for the replies. ![]() For example, lets try to import the Beautifulsoup4 library thats not installed in my virtual environment. So before importing a librarys module, you need to install it with the pip command. Is this to be expected? I've seen a few reports of people saying it is slow in general - but this is different. Also, you can get the issue if you are trying to import a module of a library which not installed in your virtual environment. Task manager shows python as using approx 16% CPU with the total CPU usage maxing out at about at 24%. I have tried both the Ubuntu and Debian distibutions on WSL, and tried running the code from both /mnt/c/ and from /home/user/ just to see if that makes any difference, but the times are pretty much the same. ![]() The download part is quick as they are already cached - it is the 'Installing collected packages' that takes most of the time.įor comparison, the exact same code runs on my native linux laptop (with half the spec) in 8 seconds total.Īlso, virtualenv takes approx 10 seconds to create a new environment compared to 2 seconds on my linux laptop. I'd love to switch to WSL for my development work but certain operations are unacceptably slow.Ī 'pip install' of a few packages and their dependencies takes nearly 1 minute (this was 3 minutes before I disabled the Windows Defender real time protection). I am running a clean install of Windows 10 Professional on a Dell XPS 9570 i7 8th gen, 16GB, with SSD. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |