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
KevinBu
V2EX  ›  Python

Python 开发是不是用 Ubuntu 更方便一些?

  •  
  •   KevinBu · 2018-12-26 18:42:09 +08:00 · 2713 次点击
    这是一个创建于 1938 天前的主题,其中的信息可能已经有所发展或是发生改变。
    目前在 centos7 上碰到的问题:

    mysqlclient 无法安装,OSError: mysql_config not found,搜了好多方法都不好使

    tensorflow 无法安装,因为是装在公司的服务器上,没有显卡。而且 tensorflow 官网上也只找到了 Ubuntu 的安装文档。。。
    第 1 条附言  ·  2018-12-27 17:24:30 +08:00
    哪位大佬能说一下这俩问题怎么解决😏
    18 条回复    2018-12-27 23:46:42 +08:00
    1024MB
        1
    1024MB  
       2018-12-26 21:38:33 +08:00 via Android
    macos
    darkTianTian
        2
    darkTianTian  
       2018-12-26 21:47:06 +08:00
    CentOS 不太熟,反正我也是最近遇到一个 rabbitmq 安装特别麻烦的坑。
    Nick2VIPUser
        3
    Nick2VIPUser  
       2018-12-26 23:55:52 +08:00
    相比来说 Linux 方便一点
    其实 Linux 和 win 上面都有些不好安装的东西
    wxpython、opencv 我在 ubuntu 上安装就花了好久
    在 win server 安装一些 lib 经常缺少 C++的库;部署 django 或者 flask 项目也很麻烦
    mseasons
        4
    mseasons  
       2018-12-27 08:56:27 +08:00
    mac 贼爽
    SeaRecluse
        5
    SeaRecluse  
       2018-12-27 09:24:11 +08:00
    anaconda
    source activate
    conda install
    完事
    bikingtarzan
        6
    bikingtarzan  
       2018-12-27 10:32:41 +08:00 via Android
    在线装 tensorflow 就行,我用离线包安装就是不行…
    KevinBu
        7
    KevinBu  
    OP
       2018-12-27 12:00:37 +08:00
    @bikingtarzan 我用 pip install tensorflow 报错
    KevinBu
        8
    KevinBu  
    OP
       2018-12-27 12:01:24 +08:00
    @Nick2VIPUser Linux 的不同版本区别也不少~
    KevinBu
        9
    KevinBu  
    OP
       2018-12-27 12:01:51 +08:00
    @SeaRecluse anaconda 包含什么东西都
    bikingtarzan
        10
    bikingtarzan  
       2018-12-27 13:08:41 +08:00
    KevinBu
        11
    KevinBu  
    OP
       2018-12-27 13:33:01 +08:00
    @bikingtarzan 装在服务器上没有显卡
    SeaRecluse
        12
    SeaRecluse  
       2018-12-27 13:48:13 +08:00
    @KevinBu 相当于一个集成的科学运算库吧,可以创建隔离的环境来启动代码。我在 centos7 上没遇到过你出现的问题。
    xpresslink
        13
    xpresslink  
       2018-12-27 14:33:17 +08:00
    是的,centos 默认 yum 源内容版本比较旧。ubuntu 的 apt 源要新很多,很多东西直接用就基本够了。
    northisland
        14
    northisland  
       2018-12-27 16:00:08 +08:00
    一件一件解决吧,
    你描述的问题,只你没迈过的门槛而已,

    感觉 CentOS, Ubuntu 差不多
    godbmw
        15
    godbmw  
       2018-12-27 16:53:40 +08:00
    有句话:Ubuntu--从入门到换 Mac ╮(╯▽╰)╭
    feiniu
        16
    feiniu  
       2018-12-27 18:21:31 +08:00
    同想换 mac,Ubuntu 有时也头疼
    bikingtarzan
        17
    bikingtarzan  
       2018-12-27 18:32:34 +08:00   ❤️ 1
    @KevinBu 可以花个半小时试一试 anaconda 创建虚拟环境,再直接 pip install tensorflow。。。
    ifane
        18
    ifane  
       2018-12-27 23:46:42 +08:00
    yum install mysql-devel
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   945 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:42 · PVG 05:42 · LAX 14:42 · JFK 17:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.