vscode python extension cant install from any source - python

Trying to install python extension for vscode but i always encounter an error.
by the way, python 3.10.9 is installed on my pc and works correctly
i tried installing it from the vscode editor but encounterd an error
i downloaded the vsix file using 2 different PCs but that too i always lebeled as corrupt
picture is below
any ideas pleaseenter image description here

After trying for a hours, i got the solution to my case.
for me, the internet connection was slow and caused interuptions in the installation.
I realise this when i got a stronger internet connection and the extension installed properly and without any suffering.

Related

ModuleNotFoundError: No module named 'numpy' on Fedora

I'm having this problem when i try to import numpy or any other modules of python on PyCharm or Visual Studio Code.
here's some things that i tried:
When i try to import direct via Python CLI the import works perfectly without any changes but when i use Visual Studio Code or Pycharm this problem happens even using their CLI, i tried the flatpak and distribution version of Pycharm and the problem continues.
I tried to change python interpreter of VSC using "commmand palette Python: Select interpreter" and the problem still happening
I installed Fedora workstation 37 on a VM only installing Pip, Numpy, VSC Flatpak via FlatHub and IntelliCode extension and the problem continues
Can someone help me?
EDIT: I find the problem, the reason why i was having this problem is because the VSC Flatpak isn't well integrated with the system therefore not able to acess SDKs of my host system.
To anyone having similar problem you can see how to solve here.

Why is my python extension not loading in VScode? (Microsoft)

I'm new to Python and programming in general, i'm learning my first steps in VScode. I was trying to create a virtual environment which I couldn't activate for some reason. I tried to solve this with a few tricks I found on stackoverflow, like disabling python.experiments.
It still didn't work so I thought I would just start without a venv, but then the python extension was not working anymore. VScode told me: "Extension activation failed, run the 'Developer: Toggle Developer Tools' command for more information'"
The errors I found where: "Activation extension 'ms-python.python' failed: e.endswith is not a function"
I uninstalled the Python and Pylance extension, accordinly I deleted all the related files before installing it again.
I was expecting VScode to be loading the Python extension succesfully again, but I still encountered the same error for which I don't know how to solve it.
Then I deleted VScode entirely before installing it again, unfortunately still the same issue..

I somehow screwed this up badly (Python PIP)

I was cleaning out my laptop and somehow screwed up my Python installation. Now I'm getting an error that I can't even find the answer to in Google (I usually copy and paste the error msg as a Google search and it usually leads me to an answer on here or other sites). This is the error msg verbatim: Fatal error in launcher: Unable to create process using '"C:\Python310\python.exe" "C:\Python310\Scripts\pip.exe" install Flask': The system cannot find the file specified.
I just reinstalled Python 3.10 via the installer from the Python site (so as not to screw up with Linux install since it likes to auto install 2.7 for some reason)
Any help would be greatly appreciated as always

Is my editor getting confused by python because I have 3.7 and 3.8?

Currently on windows 10, using VSCode to run python.
So I recently downloaded python3.8 when I was using python 3.7. Everything was working fine when I was still on python3.7. I now have multiple python directories and I think my imported libraries are throwing errors because of it.
I now have python in(these are results from searching python and right clicking -> open file location) :
C:\Python38
C:\Users\david\AppData\Roaming\Python\Python38
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.8
C:\Users\david\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.7
As for installed programs I have :
python3.8.5(64-bit)
Python launcher
Should I add all four paths to my environment...?
Frankly I don't even know anymore how to tackle this problem. I'm not even sure what the problem is I just think its a problem. If someone could link me another stackoverflow or help that would be great.
If this isn't supposed to be a problem then I guess I have some more googling to do...
Thank you
EDIT(commented below): One specific error I keep on getting is when I install keras and tensorflow, and run a program, it keeps on asking me to install tensorflow 2.2.0 even though I've already installed it. I have C:\Python38 and C:\Users\david\AppData\Roaming\Python\Python38 in my windows path and C:\Python38 as my VSCode path –

When I tried to install sacrebleu, I got an installation error

Description
When I tried to install package sacrebleu, I got an error like this:
Installation Error
It said "System cannot find the specified file". However I have no idea how to solve it.
I have tried installing package mecab-python3. But it confuses me that it was successfully installed in Anaconda but got an error, "Microsoft Visual C++ 14.0 is required", in original python38 environment.
Whether the package mecab-python3 has been installed or not, I still got the same error and cannot install sacrebleu.
I also tried restarting my machine but it does not work.
Is there anyone could solve it? or I want to know if there is any alternative package I can use to calculate BLEU score.
Thanks Anyway!
My Environment
Windows 10
Python 3.8
pip 20.1.1
Anaconda3 v4.8.2
I'm the mecab-python3 maintainer. Sorry it's giving you trouble.
The README has a link to the C++ runtime pack you have to install on Windows, if you install that it should work.
I have heard reports of the package not working with Anaconda on Windows specifically, though it seems to work sometimes. If you have trouble please open an issue and I'll try to fix it. On the other hand, if you aren't processing Japanese there's no reason to import the module and that may be a bug in sacrebleu.
Ah, actually, I just saw your screenshot - didn't notice it before.
Versions before 1.0 don't support Windows. But to keep using the old dictionary, sacrebleu has to make some changes, so they don't support 1.0+ yet. I think they are working on it, see this issue.

Categories