Is mysql.connector supported in Python Anywhere? [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Im new to pythonanywhere yet I have made my webapp run on their server. My website domain is http://knowfahad.pythonanywhere.com/.
The problem is that I used mysql.connector for database stuff and whenever the databse is being accessed on the website, the error 500 is shown.
My question is whether mysql.connector is supported by python anywhere?

Yes MySQL is supported. If python 2.x, you need to use import MySQLdb
And if you're using MySQL with Python 3, you need to install a module. If you're not using a virtualenv, run:
$ pip3.4 install --user mysqlclient
https://help.pythonanywhere.com/pages/UsingMySQL/

Related

How to download beautifulsoup [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 months ago.
Improve this question
I am taking an info storage and retrieval class, and to complete an assignment we need to download and use the beautifulsoup package for python. I haven't used Python in years, so I'm very rusty and cannot seem to figure out how to download a Python package. I'm using Python 3 and have Windows 10.
you can use pip install beautifulsoup4
Make sure that you have the Python executable in your environment variable Path.

How to import modified library instead of previously installed one? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am new to GitHub and as in the title I am asking for help.
I originally installed the library using pip install. Then I have to make some changes in the code and forked it and downloaded it local. I have made my changes and I am trying to import the modified code in python. I have tried to push it on GitHub but I couldn't find a way to import it from there.
Thank you for your time
import <module>
And use the module in python.
You should do the following in the terminal:
cd package_dir
pip install .
This will replace the original and install the modified package.
Now you can import your modified package in python
Additionally, if you intend to keep developing the package, you could check this out: https://setuptools.readthedocs.io/en/latest/setuptools.html#development-mode

How do I add autoit to Spyder? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am new to python and trying to write scripts in Spyder that use autoit but keep getting an error when I import autoit :
ModuleNotFoundError: No module named 'autoit'
First pip install -U pyautoit and then add import autoit
You can also look at this question. Hope it will help you

How to install python 2.7 in linux in local directory without admin rights? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to install python 2.7 in local directory in linux but I don't have admin rights. I need help regarding to this.
Try: ./configure prefix=/x/y and then make install.
Then add the path /x/y/bin in .bashrc as:
PYTHONPATH=/home/something/python/bin
export PATH=$PYTHONPATH:$PATH

How to install imtools module for in Ubuntu [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am using python in Ubuntu, but when I import the imtools module:
import imtools
I get this error:
ImportError: No module named imtools
How can I install the module?
I believe you're possibly following:
Jan Erik Solem's book "Programming Computer Vision with Python"
If that is the case then you are supposed to create the file imtools.py yourself.
You then store the functions you've made in that file so you can use them later on.

Categories