在具有python3支持的virtualenv中安装pysqlite

编程入门 行业动态 更新时间:2024-10-23 04:45:30
本文介绍了在具有python3支持的virtualenv中安装pysqlite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我用以下方法创建了virtualenv:

I've created virtualenv with:

mkvirtualenv -p /usr/bin/python3.4 django

之后,我尝试安装pysqlite:

After, I tried install pysqlite:

pip install pysqlite

但是我得到了

Downloading/unpacking pysqlite Downloading pysqlite-2.6.3.tar.gz (76kB): 76kB downloaded Running setup.py (path:/home/sigo/.virtualenvs/django/build/pysqlite/setup.py) egg_info for package pysqlite Traceback (most recent call last): File "<string>", line 17, in <module> File "/home/sigo/.virtualenvs/django/build/pysqlite/setup.py", line 85 print "Is sphinx installed? If not, try 'sudo easy_install sphinx'." ^ SyntaxError: invalid syntax Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 17, in <module> File "/home/sigo/.virtualenvs/django/build/pysqlite/setup.py", line 85 print "Is sphinx installed? If not, try 'sudo easy_install sphinx'." ^ SyntaxError: invalid syntax

似乎pip尝试使用python2.我该如何解决?

It seems that pip try use python2. How can I resolve this?

推荐答案

没有适用于Python 3.x的pysqlite的公共版本.对于Python 3.x,标准库中的sqlite3模块是pysqlite的最新版本.

There is no public version of pysqlite for Python 3.x. For Python 3.x, the sqlite3 module in the standard library is the most up-to date version of pysqlite there is.

更多推荐

在具有python3支持的virtualenv中安装pysqlite

本文发布于:2023-10-07 14:26:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1469631.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:virtualenv   pysqlite

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!