Ask Your Question
2

How to install packages using pip from within Wing

asked 2019-10-03 06:34:30 -0500

Varuna gravatar image

updated 2020-06-25 13:56:01 -0500

What is the way to install a package using pip from within Wing? For example, how to install the Bottle Python Web Framework from within Wing?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2019-10-03 07:30:59 -0500

Other than starting a command from the OS Commands tool there's no way to do that now. Adding a package manager is something we hope to do in the future.

edit flag offensive delete link more

Comments

You have my +1

tinjaw gravatar image tinjaw  ( 2019-11-25 11:03:11 -0500 )edit

A small start on this is available in Wing 7.2+ where you can specify packages to install in the New Project dialog when creating a new virtualenv or Anaconda env with your new project.

Wingware Support gravatar image Wingware Support  ( 2020-01-22 19:32:32 -0500 )edit

I tried this with PyQt5, but the package gets installed into the host python and not into the Wing created virtual environment.

It does work, if I start a terminal from within Wing IDE, which is automatically in the correct virtual environment and then install via pip

pip install pyqt5

This is on a fresh install of macOS Mojave with python 3.7.7 installed via python.org installer. WingPro 7.2.2.13 (rev b4c7d93c92a9)

chriswayg gravatar image chriswayg  ( 2020-06-24 11:17:17 -0500 )edit

I think there may be a bug here so that Wing ends up running pip outside of the activated env. We'll look into fixing that soon. Thanks for pointing this out!

Wingware Support gravatar image Wingware Support  ( 2020-06-25 13:55:49 -0500 )edit
1

answered 2019-10-07 10:12:54 -0500

Max Slimmer gravatar image

You could manage your project in a virtual environment, do the pip install there and set your wing project to use that environment.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-10-03 06:34:30 -0500

Seen: 4,816 times

Last updated: Oct 07 '19