简体   繁体   中英

setup.py opens pycharm, can't change file type

quick question. I'm trying to instal bs4 but when i run: "setup.py install" it opens the .py file in my Pycharm.

Im unable to change the type (it will eventually use another type of program to open it). and I tried to remove the file association from PyCharm but have no positive results.

How can I stop PyCharm from opening the script from cmd when I run it ?

ps.: OS windows 7

From what I understand from your question, you're just clicking on the setup.py file and trying to install it that way which won't work. What you'll need to do is this:

  1. Go into the folder where Bs4 is extracted to.
  2. Where it has the content for the installation ie setup.py
  3. shift + right click in the folder, and click on open command window here
  4. Final step! type python setup.py install in the command window.

That will then install the library!

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