简体   繁体   中英

I can not run the microsoft python extension code from github

  1. I download code from https://github.com/Microsoft/vscode-python .
  2. enter "npm i". showing lots of red. https://i.stack.imgur.com/N0jAj.jpg
  3. enter "vsce package". showing lots of error. https://i.stack.imgur.com/xtYfT.jpg
  4. I want to change some code and generate a vsix file for visual-studio-code. How can I run the code?

If I recall correctly, npm is a package manager for JavaScript.

  1. First download pip and Anaconda to install and manage your Python related packages. If you are working from a macOS machine you can use Homebrew as well. pip Anaconda Homebrew

  2. Create your virtual enviornment that contains all of the dependencies you need to run your python program. How to create virtual enviornments

  3. Activate your virtual enviornment. For example, on a Windows machine do:

     source activate your_enviornment_name
  4. Your Python file should be named file_name.py not.vsix.

  5. If you need additional extensions within VS Code you can install those directly in the IDE by accessing the Extensions Marketplace (App Store inside Visual Studio Code)

  6. You can edit and debug in VS Code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM