Jump to content
Developer Wiki and Function Reference Links Read more... ×
Nomi

Install numpy for python in Vectorworks 2019?

Recommended Posts

Hi all,

 

What is the easiest way to install numpy for python in Vectoworks 2019? I found a thread (below) that discusses it but I get an error message when I try to do as instructed with the file provided.

 

 

Thanks!

Share this post


Link to post

Hi Nomi,

welcome to the forum.

 

If you are getting an error message, that numpy and scipy cannot be installed, it is most likely due to an incompatibility with the python version.

When you look at the file links inside the voronoi node, you will notice, that in the file names it says "cp33", which stands for "CPython 3.3". VW 2019 is shipped with CPython 3.5 though.

 

Here you can find the latest numpy files:

https://pypi.org/project/numpy/#files

 

Mac:

numpy-1.16.4-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl

 

Windows:

numpy-1.16.4-cp35-cp35m-win_amd64.whl

 

Using these should solve the problem.

Share this post


Link to post

Hi Antonio,

 

Thanks! I've downloaded version 3.5 but am having trouble locating where to put them in the Vectorworks library. I'm following the instruction in the thread I linked above, specifically this paragraph:

 

To install Numpy and Scipy on a Mac, use the description you got with these files. Make sure to install them where you can find them      later because you'll need to move them to another folder.

Once they are installed just go to your Vectorworks.app and right-click it to enter the contents of the app ('show package contents'). Browse to Contents:Frameworks:Python.framework:Versions:3.3:lib:python3.3:site-packages and drop the folders "numpy", "numpy-1.9.3.dist-info", "scipy" and "scipy-0.16.0.dist-info" in there.

 

Any thoughts? Much appreciated!

 

Share this post


Link to post

Nevermind, figured it out - thanks for your help!

Share this post


Link to post

Ah one more thing - could you point me towards the correct Scipy file for Mac as well?

 

Thanks again.

Share this post


Link to post

Nomi,

good you figured it out. 🙂

 

But in case somone else wants to know:

Manually downloading python libraries isn't necessary. You just have to replace the links in the node* with the latest version.

 

* In the file VoronoiObj_v2017_CrossPlatform_MFarrell.vwx it's the node called "Voronoi".

 

With Scipy it's exactly the same as with Numpy: find the file repository, choose the right file and replace the links.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×