无法为python 3.4安装networkx
尝试安装python 3.4的networkx的三天后,我几乎要放弃了,我决定寻求一些可能对此有经验的人的帮助.
After 3 days of trying to install networkx for python 3.4, I am on the verge of giving up and I've decided to seek for help from some of you people who had some experience with this perhaps.
我设法用easy_install或pip_install来安装networkx(我什至不记得我已经尝试安装了多少遍了),但是当我尝试编译最基本的第一段代码时(在教程中找到):
I managed to install networkx with easy_install or pip_install (I don't even remember anymore of how many times I've tried to install it all), but when I try to compile the very first, most basic piece of code (found in a tutorial):
import networkx as nx;
Test = nx.Graph();
Test.add_node("Test");
nx.draw(Test, node_size=900, node_color="blue");
我收到错误消息: ImportError:没有名为"numpy"的模块 当我尝试使用 easy_install numpy 安装numpy时,它将正常启动下载和安装过程,但随后显示此错误: 需要Microsoft Visual C ++ 10
I get an error: ImportError: No module named 'numpy' When I try to install numpy with easy_install numpy it starts the download and installation process normally but then it shows this error: Microsoft Visual C++ 10 is required
这是指MV C ++ 1-可再发行吗?我已经下载并尝试安装它,但它却大声喊叫我已经有了更新版本,所以我不需要它...
Is this referred to MV C++ 1- redistributable? I've downloaded it and tried to install it but it shouts out an error that I already have a newer version of it so I don't need it...
所以我的问题是: 1.可以为python 3.4完全安装networkx模块吗? 2.如果是的话,除了networkx zip/installer和python 3.4之外,我还需要其他东西吗? (我从字面上发现了4个来源,它们都声称对networkx有不同的要求信息!)
So my questions would be: 1.Can networkx module be installed for python 3.4 at all? 2.If so, do I need anything else besides networkx zip/installer and python 3.4 for it to work? (I've literally found 4 sources that all claim different requirement information about networkx!)
我将非常感谢您的帮助,因为我对Python的任何进一步使用感到完全迷失和沮丧.
I would really appreciate any help, as I feel completely lost and discouraged about any further use of python.
您没有说您使用的是哪个操作系统,而是通过引用 Microsoft Visual C ++ 我要说的是 Windows .在那种情况下,获得正常运行的科学Python计算环境的最简单方法是安装打包的发行版之一.两个不错的选择是Anaconda https://store.continuum.io/cshop/anaconda/和迷恋机盖 https://www.enthought.com/products/canopy/
You didn't say which operating system you are using but by referencing Microsoft Visual C++ I'm going to say Windows. In that case the simplest way to get a functioning scientific Python computing environment is to install one of the packaged distributions. Two good choices are Anaconda https://store.continuum.io/cshop/anaconda/ and Enthought Canopy https://www.enthought.com/products/canopy/
NetworkX肯定适用于Python3.4 https://travis-ci.org/networkx/networkx
NetworkX definitely works with Python3.4 https://travis-ci.org/networkx/networkx