Command in Stata unrecognized - command

I get the following error:
command center is unrecognized
Do I have to install something in Stata?

center is community-contributed (old jargon: user-written) and must be installed explicitly with
ssc install center

Related

How can I fix the attribute error in VS code when the same code runs perfectly on colab?

I was running the PySINDy package and I kept on getting the module not found-error when I ran this:
pip install pysindy
import pysindy as ps
I fixed this by downgrading the Python in my VS code to 3.8.9. But I do get the following note:
note: This error originates from a subprocess, and is likely not a problem with pip.Note: you may need to restart the kernel to use updated packages.
I am now getting the attribute error when I run the following:
differentiation_method = ps.FiniteDifference(order=2)
Here's the error:
AttributeError: module 'pysindy' has no attribute 'differentiation'
Can someone please help me with this? (I successfully ran the entire code earlier on google colab and the online Jupyter, but I am unable to do it locally. I use MAC os and Jupyter via VS Code.)

how to install staza for python 3.7 (this command is returning error (!pip install stanza ))

I am trying to instal stanza for lemmatization purposes using this command: !pip install stanza but it's returning the following error. Please help I am new to python.
Collecting stanza
Using cached stanza-1.1.1-py3-none-any.whl (227 kB)
ERROR: Could not find a version that satisfies the requirement torch>=1.3.0 (from stanza) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch>=1.3.0 (from stanza)
Same problem. I went to https://pytorch.org/get-started/locally/ and installed the torch, then it was solved.

(MiniZinc) unrecognized option `--solver'

After resolving the problem I had with the PATH at Unable to run MiniZinc from command line - Even after adding installation location to PATH, I soon encountered another problem when invoking the solver via the command minizinc -c --solver Gecode model.mzn data.dzn. I obtained the error: minizinc: unrecognized option "--solver".
How can I resolve this? I also want to use the CBC and Gurobi solvers (mzn-cbc, mzn-gurobi) as well..
I am following the instructions given at http://www.minizinc.org/doc-2.2.0/en/command_line.html if it helps.
The --solver option was introduced in the release today, version 2.2.0. Please install the newest version of MiniZinc and this should solve you problem

Installing Tensorflow from source

I've been trying to install Tensorflow and get it working over the past few days. Whilst I have managed to install TF and get it working as tested by opening Python in the terminal and typing,
import tensorflow as tf
I have not been successful attempting to retrain Inception v3. I managed to install it from source once by following the instructions laid out here however I am no longer able to do so. When I get to the section 'Create the pip package and install' and go to run bazel build -c opt //tensorflow/tools/pip_package:build_pip_package in the root of my Tensorflow directiory I get the following error.
kieran#kieranUbuntu:~/tensorflow$ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
ERROR: /home/kieran/tensorflow/tensorflow/core/BUILD:1068:1: no such target '//tensorflow/tools/git:gen/spec.json': target 'gen/spec.json' not declared in package 'tensorflow/tools/git' defined by /home/kieran/tensorflow/tensorflow/tools/git/BUILD and referenced by '//tensorflow/core:version_info_gen'.
ERROR: /home/kieran/tensorflow/tensorflow/core/BUILD:1068:1: no such target '//tensorflow/tools/git:gen/head': target 'gen/head' not declared in package 'tensorflow/tools/git' defined by /home/kieran/tensorflow/tensorflow/tools/git/BUILD and referenced by '//tensorflow/core:version_info_gen'.
ERROR: /home/kieran/tensorflow/tensorflow/core/BUILD:1068:1: no such target '//tensorflow/tools/git:gen/branch_ref': target 'gen/branch_ref' not declared in package 'tensorflow/tools/git' defined by /home/kieran/tensorflow/tensorflow/tools/git/BUILD and referenced by '//tensorflow/core:version_info_gen'.
ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' failed; build aborted.
INFO: Elapsed time: 3.063s
This is the same error I ran into when I managed to install it and then attempted retaining the classifier following this tutorial. At the section, bazel build tensorflow/examples/image_retraining:retrain.
I just can't figure out what is going wrong and I have been trying for so long.
I'm using this pip version, # Ubuntu/Linux 64-bit, CPU only, Python 2.7
I think you should search before ask, This link can probably solve your issue.
The issue lied in the incorrect use of ./configure. Whilst it was ran I currently have two versions of python on my computer, both of which are stored in different locations, when running ./configure I pointed it to the wrong python version. After rectifying the issue everything worked correctly.

How to fix No developer directory found error in Xcode 4.5.1?

Am working in Xcode 4.5.1 with iOS 6.0. Am new to "Test" the iOS applications. Whenever I try to "Test" the app it is showing "Test Succeeded" but through an error in Debugger area.
The error message is,
Error: No developer directory found at /Volumes/RED Zone/Softrware Dump/Xcode Tools/xcode 4.5.1/Xcode.app/Contents/Developer. Run /usr/bin/xcode-select to update the developer directory path.
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible'
*** Call stack at first throw:
Also I tried to update the path using Terminal like below,
/usr/bin/xcode-select -switch /Applications/CompanyName/xcode 4.5.1/Xcode.app/Contents/Developer
It showed below error message:
xcode-select: Error: argument missing from -switch option.
Usage: xcode-select -print-path
or: xcode-select -switch <xcode_folder-path>
or: xcode-select -version
Arguments:
I dont know how to fix this issue? Anyone please help me on this? Looking forward your help. Thanks in advance.
Try using the tab key to autocomplete the directory names; that will escape the spaces. The error is occurring because xcode-select doesn't recognise the path you're providing as being valid.