V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
whwq2012
V2EX  ›  Python

这种情况如何取舍?

  •  
  •   whwq2012 · 2016-09-16 17:52:42 +08:00 · 2302 次点击
    这是一个创建于 2772 天前的主题,其中的信息可能已经有所发展或是发生改变。

    事情是这样的,
    操作系统: ArchLinux
    1 、我下了一万多张图片,然后我想用 python 写一个小程序来自动换壁纸
    2 、并且这个小程序我想写一个简单的 GUI ,可以自定义简单的参数,比如切换图片的时间
    3 、所以我想使用 Tkinter 模块,但是 import 的时候无法导入,显示未配置
    4 、我搜索了解决方法,发现需要重新编译 python 才能解决。
    5 、但是我安装的许多程序都依赖 python ,比如 ss ,重新编译的话,那些又要重新配置

    所以我该怎么办呢,我个人想到了,以下几种解决方法:
    1 、重新编译 python ,重新配置软件
    2 、安装 pyton3 (我用的是 python2.7 ,不过这种觉得有点悬,因为不知道库和 pip 会不会冲突)
    我想不出了,求更好的解决方法

    6 条回复    2016-09-17 22:52:06 +08:00
    fffflyfish
        1
    fffflyfish  
       2016-09-16 18:02:03 +08:00   ❤️ 1
    不知道 virtualenv 能不能解决你的问题
    xiahei
        2
    xiahei  
       2016-09-16 18:07:29 +08:00
    pyenv
    Osk
        3
    Osk  
       2016-09-16 18:58:04 +08:00 via Android
    arch 默认的 python 不是 3 吗,我 3 和 2 都一起装了
    cxbig
        4
    cxbig  
       2016-09-16 20:47:45 +08:00   ❤️ 1
    Python 有版本管理工具,并行也可以分 python/pip 和 python3/pip3
    Override
        5
    Override  
       2016-09-17 22:51:06 +08:00 via Android
    同 Arch ,刚好写过一个,也是 Python 的
    Override
        6
    Override  
       2016-09-17 22:52:06 +08:00 via Android
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2580 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:30 · PVG 23:30 · LAX 08:30 · JFK 11:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.