Paweł Pedryc
Paweł Pedryc

Reputation: 396

How to use python-wheel code in python shell?

I try to learn how to create a Python library. But I have a problem with activating a virtual environment. To be more specific: I was told to do this:

code from Realpython: virtual environment .. I opened my console:

![image|510x490](upload://zqb3BdSuq5XipqvbPHZMJND0r3r.png)

and paste the mentioned code:

$ python -m venv env && source ./env/bin/activate
$ python -m pip install -U pip wheel setuptools
Successfully installed pip 20.1 setuptools-46.1.3 wheel-0.34.2

But It was rejected (and I couldn't find on the internet why is that - probably the solution is simple, but I don't even know how to post a proper question to find it):

![image|690x359](upload://oKNbP6ohfVekQpN4wa5NoyKZkrd.png)

I tried to pate this code without dollar sing but it won't work too, also replacing $ with ! won't work.

![image|644x255](upload://rrod0WdZiO64nQAblPebOittice.png)

I don't know why it doesn't work and what version of this code should I use.

can you help me?

Upvotes: 0

Views: 163

Answers (1)

Andrey RF
Andrey RF

Reputation: 342

Don't use windows :) go to linux. $ is special linux terminal symbol. The source is linux command too. guide. Use windows commands if you use windows. But the better way is going to linux.

Upvotes: 1

Related Questions