pip install Django==3.0

已查看 85 次
跳至第一个未读帖子

אורי

未读,
2019年12月2日 11:06:182019/12/2
收件人 django...@googlegroups.com
Django users,

When I use pip to install a package, does it depend on the version of Python I'm using?

pip install Django==3.0 fails with Python 3.5:

But it succeeds with Python 3.6 and 3.7. I noticed that Django 3.0 doesn't support Python 3.5. But why does pip fail?
 

John McClain

未读,
2019年12月2日 11:13:562019/12/2
收件人 django...@googlegroups.com
try without specifying version
try without using pip

what ide are you using

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABD5YeG8ezgQpM7uHmVGsKMrQnw5OArZTf%3DHYTkar7s4QdHt2Q%40mail.gmail.com.


--
John McClain

Cell: 085-1977-823
Skype: jmcclain0129

JP Smith

未读,
2019年12月2日 11:22:442019/12/2
收件人 Django users
Django 3.0 does not support Python 3.5:

Ramiro Morales

未读,
2019年12月2日 11:22:512019/12/2
收件人 django...@googlegroups.com

 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABD5YeG8ezgQpM7uHmVGsKMrQnw5OArZTf%3DHYTkar7s4QdHt2Q%40mail.gmail.com.


--
Ramiro Morales
@ramiromorales

JP Smith

未读,
2019年12月2日 11:26:062019/12/2
收件人 django...@googlegroups.com
Django 3.0 does not support Python 3.5 .


--

Simon Charette

未读,
2019年12月2日 14:23:592019/12/2
收件人 Django users
Dear Uri,

> When I use pip to install a package, does it depend on the version of Python I'm using?

Yes, it does.

> I noticed that Django 3.0 doesn't support Python 3.5. But why does pip fail?

Pip will respect the supported version metadata of the package. There's no package available for the Django
and Python version constraints you provided.

Instead of getting a non-nonsensical SyntaxError crash when trying to run Django on Python 3.5 pip prevents
you from shooting yourself in the foot in the first place.

Simon

Abu Yusuf

未读,
2019年12月2日 23:20:232019/12/2
收件人 django...@googlegroups.com
django-3.png
They clearly mentioned here.

photo
Abu Yusuf
Jr. Software Engineer at  Binate Solutions Ltd.
Dhaka, Bangladesh
01828689381 
revely...@gmail.com 
https://yusuff.dev 
Linkedin https://www.linkedin.com/in/yusuf-dev/
live:9151cfda40e05eef


--

אורי

未读,
2019年12月3日 01:03:342019/12/3
收件人 django...@googlegroups.com
On Mon, Dec 2, 2019 at 9:24 PM Simon Charette <chare...@gmail.com> wrote:
Dear Uri,

> When I use pip to install a package, does it depend on the version of Python I'm using?

Yes, it does.

> I noticed that Django 3.0 doesn't support Python 3.5. But why does pip fail?

Pip will respect the supported version metadata of the package. There's no package available for the Django
and Python version constraints you provided.

Instead of getting a non-nonsensical SyntaxError crash when trying to run Django on Python 3.5 pip prevents
you from shooting yourself in the foot in the first place.

Simon

Thank you. I didn't know that pip is that "smart" to check the version of Python I'm using. Good to know.


回复全部
回复作者
转发
0 个新帖子