<p>this is probably a little late in the day to answer. I have a wafo "superficially working" on windows 10 with python 3.7.1: however, so far I have only accessed the wave spectrum models. The recipe I used was </p>

<ol>
<li>clone the repo</li>
<li>pip install 2to3</li>
<li>navigate to the cloned folder</li>
<li>2to3 . -w </li>
<li>copy folder to src/wafo folder to site-packages/wafo</li>
<li>Open cmd.exe or something better e.g. ConEmu</li>
<li>Assuming your python.exe is in your PATH. type ... python -c "import wafo"</li>
<li>Then address each problem in turn... </li>
</ol>

<p>There aren't many problems to address if all you need are the wave spectrum models. It took me an hour to hack the source code to access these. If you need to access the whole suite of functionality, continue the approach. You may need to recompile the c-libraries if they are needed. </p>

<p>Sorry I can't provide a comprehensive list of the changes I made to get wafo to import. Here are the ones I remember</p>

<ul>
<li>It will complain about "import scipy.lib.six". Change to "import six" (install it)</li>
<li>It will complain about scipy's piecewisepolynomial. Change to PPoly</li>
<li>It will complain some version checks ... set to True as your module versions are no-doubt much newer than the versions 5 years ago. </li>
</ul>

CC BY-SA 4.0
2019-09-04T12:59:57.033Z
2019-09-04T12:59:57.033Z
Pseudo Nym
<p>I have a fork of the official WAFO repo that I use, having converted it to python 3 a year or so ago. I haven't updated it in a while and haven't tested all the functionality, but anyone still looking for this is welcome to try using:</p>

<pre><code>pip install https://github.com/JohnCHarrington/pywafo.git
</code></pre>

CC BY-SA 4.0
2019-12-18T07:38:34.603Z
2019-12-18T07:38:34.603Z
JohnCH
<p>I've tried: 
pip install wafo
pip install wafo==0.3.1</p>

<p>The instructions of readme provide a 2 step installation process but it fails on the first one.</p>

<p>I am using windows 10 and python 3.6.1.</p>

<p>Right now, rather than assistance to make it work I would just like to know if I'm on a fools errand or if its actually possible to install wafo for python under configurations like I have. </p>

<p>Appreciate any reply.</p>

<python>
Anyone sucessfully installed pywafo for Python 3 under windows OS?
Thiago Marinho
# Anyone sucessfully installed pywafo for Python 3 under windows OS?

(Asked by: username_0 on 2019-07-17)

I've tried:
pip install wafo
pip install wafo==0.3.1

The instructions of readme provide a 2 step installation process but it fails on the first one.

I am using windows 10 and python 3.6.1.

Right now, rather than assistance to make it work I would just like to know if I'm on a fools errand or if its actually possible to install wafo for python under configurations like I have.

Appreciate any reply.

**Tags:** python


---

## 2 answers

### Answer by username_1 on 2019-09-04. Score: 1

this is probably a little late in the day to answer. I have a wafo "superficially working" on windows 10 with python 3.7.1: however, so far I have only accessed the wave spectrum models. The recipe I used was

1. clone the repo
2. pip install 2to3
3. navigate to the cloned folder
4. 2to3 . -w
5. copy folder to src/wafo folder to site-packages/wafo
6. Open cmd.exe or something better e.g. ConEmu
7. Assuming your python.exe is in your PATH. type ... python -c "import wafo"
8. Then address each problem in turn...

There aren't many problems to address if all you need are the wave spectrum models. It took me an hour to hack the source code to access these. If you need to access the whole suite of functionality, continue the approach. You may need to recompile the c-libraries if they are needed.

Sorry I can't provide a comprehensive list of the changes I made to get wafo to import. Here are the ones I remember

* It will complain about "import scipy.lib.six". Change to "import six" (install it)
* It will complain about scipy's piecewisepolynomial. Change to PPoly
* It will complain some version checks ... set to True as your module versions are no-doubt much newer than the versions 5 years ago.


---

### Answer by username_2 on 2019-12-18. Score: -1

I have a fork of the official WAFO repo that I use, having converted it to python 3 a year or so ago. I haven't updated it in a while and haven't tested all the functionality, but anyone still looking for this is welcome to try using:

```
pip install https://github.com/JohnCHarrington/pywafo.git

```


---

