UPDATE1: So I just realized in the scikit-learn 0.19.0 docs for the SGDClassifier, there is now a 'max_iter' parameter which can be set instead of using 'n_iter'. However, if I create a new classifier where only 'max_iter' is set, it defaults to setting n_iter = None. Pythonanywhere still sees this 'n_iter' parameter and throws the same error as before.
UPDATE 2: I didn't use pip3.6 the first time. But now if I run
pip3.6 --user --upgrade scikit-learn==0.19.0
in the Bash Console, I get only: "usage pip <command> [options]"
If I just run pip3.6 install scikit-learn==0.19.0, it says:
Installing collected packages: scikit-learn
Found existing installation: scikit-learn 0.18.1
Uninstalling scikit-learn-0.18.1:
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.6/shutil.py", line 538, in move
os.rename(src, real_dst)
OSError: [Errno 18] Invalid cross-device link: '/usr/local/lib/python3.6/dist-packages/scikit_learn-0.18.1.dist-info/DE
SCRIPTION.rst' -> '/tmp/pip-x0bf1otj-uninstall/usr/local/lib/python3.6/dist-packages/scikit_learn-0.18.1.dist-info/DESC
RIPTION.rst'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.6/dist-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/usr/local/lib/python3.6/dist-packages/pip/req/req_set.py", line 778, in install
requirement.uninstall(auto_confirm=True)
File "/usr/local/lib/python3.6/dist-packages/pip/req/req_install.py", line 754, in uninstall
paths_to_remove.remove(auto_confirm)
File "/usr/local/lib/python3.6/dist-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/usr/local/lib/python3.6/dist-packages/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/usr/lib/python3.6/shutil.py", line 553, in move
os.unlink(src)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/scikit_learn-0.18.1.dist-info/DE
SCRIPTION.rst'