Daniel Duffy
C++ author, trainer
- Joined
- 10/4/07
- Messages
- 10,436
- Points
- 648
Yeah, I did pip install indeed. Ok, Anaconda will be next, but VS is already set up and I'm sure it's a small issue..
If you decide to go the Anaconda route, use conda environments:It could be that VS is looking at a different python interpreter than the one you pip-installed xlwings into. The usual approach is to have a virtualenv with the necessary packages installed and telling VS where to look for it. I haven't used VS before (I'm a PyCharmer as well), but this page might point you in the right direction for VS: How to create and manage Python environments in Visual Studio
The steps here work for me in VS (substitute xlwings for matplotlib): Python in Visual Studio tutorial step 5, install packagesYeah, I did pip install indeed. Ok, Anaconda will be next, but VS is already set up and I'm sure it's a small issue..
Yes!The steps here work for me in VS (substitute xlwings for matplotlib): Python in Visual Studio tutorial step 5, install packages
I see it is for Python 3.7. Do I need to update from Python 3.6 under VS2017 or is it a separate implementation?There are no stupid questions. I'm not sure how VS2015 calls pip but it should've found it if you did the usual pip install.
One more detail, I will use the Anaconda Python distribution. It's very stable and tailored for scientific computations.
I used 2017, so makes sense. Odd that it did not work for 2015 thoughYes!
It was a version problem. Used VS2017 and Python 3.6 (64 bit) and it works. VS205 not.
If you're looking from the point of view of Salary, I'd say Python. (An old infographic that I had)
From the future ready point of view, again Python: Programming language of the year? Python is standout in latest rankings | ZDNet
View attachment 28397
Being from the domain of Algorithmic Trading, reputed institutes like Quantra and QuantInsti are also rooting for Python, as can be witnessed in this course on Python)
I find it relatively easy to use Python in my daily tasks and even owing to the fact that it is relatively better to learn, practise, implement, etc.
C# is quite popular in finance., not so much in academia.Very few talk about C#
sum = 0
for i in range(array.shape[0]):
sum += array[i]
from numba import jit
@jit(nopython=True)
def get_sum(array):
sum = 0
for i in range(array.shape[0]):
sum += array[i]
return sum
sum = array.sum()